Click or drag to resize
Service<ServiceInterface> Class
Service entry in format Service<ISomeService>.Entry()...
Inheritance Hierarchy
System.Object
  CMS.Core.Service<ServiceInterface>

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 Service< ServiceInterface> 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 memberForObjectType<ObjectType>
Returns service interface as a static singleton for the given object type
Public methodStatic memberTryExecute<ResultType>
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 memberUse<ServiceType>
Sets ServiceType to be used as implementation of ServiceInterface.
Top
See Also