Service Methods |
The Service type exposes the following members.
Name | Description | |
---|---|---|
ConfigureTOptions |
Configures TOptions.
| |
InitializeContainer |
Initialize container for services resolution. No action is performed when container was already initialized
| |
IsRegistered(Type) | Obsolete.
Indicates whether service has an implementation registered.
| |
IsRegisteredTService | Obsolete.
Indicates whether TService has an implementation registered.
| |
MergeDescriptors |
Merges registered services (descriptors) that were registered through RegisterImplementationAttribute or one of 'CMS.Core.Service.Use' methods to the
serviceDescriptors collection.
After the merge the services are ordered in the ascending order by their priority.
Firstly, services registered with the Fallback priority, then services from serviceDescriptors, then services with the
SystemDefault priority and then with the Default priority.
| |
Resolve(Type) | ||
ResolveTService | ||
ResolveOptional(Type) | ||
ResolveOptionalTService | ||
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, RegistrationPriority) |
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.
|