Click or drag to resize
ServiceServiceInterfaceUseServiceType Method
Returns the service interface

Namespace: CMS.Core
Assembly: CMS.Core (in CMS.Core.dll) Version: 9.0.0
Syntax
C#
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