Class ServiceInfoCreator
public class ServiceInfoCreator
- Inheritance
-
ServiceInfoCreator
- Derived
- Inherited Members
Constructors
ServiceInfoCreator(IConfiguration)
protected ServiceInfoCreator(IConfiguration configuration)
Parameters
configuration
IConfiguration
Properties
Configuration
protected IConfiguration Configuration { get; }
Property Value
Factories
Gets a list of IServiceInfoFactory available for finding IServiceInfos
protected IList<IServiceInfoFactory> Factories { get; }
Property Value
IsRelevant
Gets a value indicating whether this ServiceInfoCreator should be used
public static bool IsRelevant { get; }
Property Value
ServiceInfos
Gets a list of IServiceInfo that are configured in the applicaiton configuration
public IList<IServiceInfo> ServiceInfos { get; }
Property Value
Methods
BuildServiceInfoFactories()
protected virtual void BuildServiceInfoFactories()
FindFactory(Service)
protected IServiceInfoFactory FindFactory(Service s)
Parameters
s
Service
Returns
GetServiceInfo(string)
Get a named Service Info
public IServiceInfo GetServiceInfo(string name)
Parameters
name
stringName of service info
Returns
- IServiceInfo
Service info
GetServiceInfo<TServiceInfo>(string)
Get a named service
public TServiceInfo GetServiceInfo<TServiceInfo>(string name) where TServiceInfo : class
Parameters
name
stringService name
Returns
- TServiceInfo
Service info or null
Type Parameters
TServiceInfo
Service Info type
GetServiceInfos(Type)
Get all Service Infos of type
public IEnumerable<IServiceInfo> GetServiceInfos(Type type)
Parameters
type
TypeService Info Type to retrieve
Returns
- IEnumerable<IServiceInfo>
List of matching Service Infos
GetServiceInfos<TServiceInfo>()
Get all Service Infos of type
public IEnumerable<TServiceInfo> GetServiceInfos<TServiceInfo>() where TServiceInfo : class
Returns
- IEnumerable<TServiceInfo>
List of matching Service Infos
Type Parameters
TServiceInfo
Service Info Type to retrieve
Instance(IConfiguration)
public static ServiceInfoCreator Instance(IConfiguration config)
Parameters
config
IConfiguration