ServiceServiceInterfaceUseServiceType Method |
Sets ServiceType to be used as implementation of ServiceInterface.
Namespace: CMS.CoreAssembly: CMS.Core (in CMS.Core.dll) Version: 10.0.0
Syntax public static void Use<ServiceType>(
bool canBeReplaced = true,
bool replaceExisting = true
)
where ServiceType : class, new(), ServiceInterface
Parameters
- canBeReplaced (Optional)
- Type: SystemBoolean
If true, the service can be replaced by other service - replaceExisting (Optional)
- Type: SystemBoolean
If true, the service replaces existing if service is already initialized
Type Parameters
- ServiceType
See Also