Class Provider<TInfo>
- Namespace
- CMS.DataEngine
- Assembly
- CMS.DataEngine.dll
Represents a facade for retrieving IInfoProvider<TInfo> instances for TInfo
management.
public static class Provider<TInfo> where TInfo : AbstractInfoBase<TInfo>, new()
Type Parameters
TInfo
- Inheritance
-
objectProvider<TInfo>
Remarks
The provider instance can be retrieved by specifying a constructor dependency on IInfoProvider<TInfo>. However, in scenarios where dependency injection is not possible (such as legacy code), the Instance property can be used to access the provider instance.
Properties
Instance
Gets the provider for TInfo
management.
public static IInfoProvider<TInfo> Instance { get; }
Property Value
- IInfoProvider<TInfo>
Remarks
The provider instance can be retrieved by specifying a constructor dependency on IInfoProvider<TInfo>. However, in scenarios where dependency injection is not possible (such as legacy code), this property can be used to access the provider instance.