Service Class |
Namespace: CMS.Core
public static class Service
The Service type exposes the following members.
Name | Description | |
---|---|---|
IsRegistered |
Indicates whether service has an implementation registered.
| |
Resolve(Type) |
Returns an instance of service as registered within the system.
| |
ResolveTService |
Returns an instance of TService as registered within the system.
| |
Use(Type, Object, String) |
Sets instance to be used as implementation of service.
| |
Use(Type, FuncObject, String, Boolean) |
Sets factoryMethod to be used as a provider of implementation of service.
| |
Use(Type, Type, String, Boolean) |
Sets implementation to be used as implementation of service.
| |
UseTService(Object, String) |
Sets instance to be used as implementation of TService.
| |
UseTService(FuncObject, String, Boolean) |
Sets factoryMethod to be used as a provider of implementation of TService.
| |
UseTService, TImplementation(String, Boolean) |
Sets TImplementation to be used as implementation of TService.
|