Class ServiceTypeConfigurator
Configures services specified by assembly qualified names.
public class ServiceTypeConfigurator : IConfigurator<IServiceCollection>
- Inheritance
-
ServiceTypeConfigurator
- Implements
- Inherited Members
- Extension Methods
Remarks
The syntax for specifying the service type and its implementation type for registration as service is:
...
"config": {
"serviceDesc": " {qualifiedTypeName-of-service-type} | {qualifiedTypeName-of-implementation-type} "
}
NOTE: Service get registered by sort order of their "serviceDesc" key.
Constructors
ServiceTypeConfigurator(IDictionary<string, string>)
Ctor from config
.
public ServiceTypeConfigurator(IDictionary<string, string> config)
Parameters
config
IDictionary<string, string>
Methods
AddTo(IServiceCollection, IConfiguration)
Method called to add a specific configuration to a target
.
public void AddTo(IServiceCollection services, IConfiguration cfg)
Parameters
services
IServiceCollectioncfg
IConfiguration