ServiceServiceInterfaceUseServiceType Method |
Returns the service interface
Namespace: CMS.CoreAssembly: CMS.Core (in CMS.Core.dll) Version: 8.2.23
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