IInfoByIdProviderTInfo Interface |
Declares a member for retrieval of info objects by their ID.
Use this interface when composing a custom provider interface. A custom provider interface can be associated with the provider using the ProviderInterfaceAttribute.
The system registers corresponding TInfo provider implementation under the custom interface into the IoC container as part of the RegisterObjectType(String, ObjectTypeInfo, Type, Boolean) method.
Unlike with IInfoProviderTInfo the system does not register the provider implementation under this interface (i.e. this interface is designed to be a part of other interfaces).
Namespace: CMS.DataEngine
public interface IInfoByIdProvider<TInfo> where TInfo : new(), AbstractInfoBase<TInfo>
The IInfoByIdProviderTInfo type exposes the following members.
Name | Description | |
---|---|---|
Get |
Gets an instance of info object based on its ID.
| |
GetAsync |
Asynchronously gets an instance of info object based on its ID.
|