Click or drag to resize
ServiceServiceInterface Class
Service entry in format Service<ISomeService>.Entry()...
Inheritance Hierarchy
SystemObject
  CMS.CoreServiceServiceInterface

Namespace: CMS.Core
Assembly: CMS.Core (in CMS.Core.dll) Version: 10.0.0
Syntax
C#
public static class Service<ServiceInterface>
where ServiceInterface : class

Type Parameters

ServiceInterface

The ServiceServiceInterface type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberIsAvailable
Checks whether the service is available
Top
Methods
  NameDescription
Public methodStatic memberEntry
Returns the service interface as a static singleton
Public methodStatic memberForObjectTypeObjectType
Returns service interface as a static singleton for the given object type
Public methodStatic memberTryExecuteResultType
Attempts to execute the given lambda expression over the service instance. If service instance is not available, does not execute and returns default value of ReturnType
Public methodStatic memberUseServiceType
Sets ServiceType to be used as implementation of ServiceInterface.
Top
See Also