Click or drag to resize
ServiceResolveTService Method
Returns an instance of TService as registered within the system. Only services with Singleton or Transient are resolved.

Namespace: CMS.Core
Assembly: CMS.Core (in CMS.Core.dll) Version: 13.0.131
Syntax
C#
public static TService Resolve<TService>()

Type Parameters

TService
Service type to be resolved.

Return Value

Type: TService
Returns an instance of TService.
Exceptions
ExceptionCondition
ServiceResolutionException Thrown when resolution of TService fails. This typically occurs when no implementing type for TService is registered or the implementing type has dependencies which cannot be satisfied.
See Also