Class ServiceInfoCreator
Inheritance
System.Object
ServiceInfoCreator
Assembly: Steeltoe.Connector.ConnectorBase.dll
Syntax
public class ServiceInfoCreator : object
Constructors
|
Edit this page
View Source
ServiceInfoCreator(IConfiguration)
Declaration
protected ServiceInfoCreator(IConfiguration configuration)
Parameters
Type |
Name |
Description |
IConfiguration |
configuration |
|
Properties
|
Edit this page
View Source
Configuration
Declaration
protected IConfiguration Configuration { get; }
Property Value
Type |
Description |
IConfiguration |
|
|
Edit this page
View Source
Factories
Declaration
protected IList<IServiceInfoFactory> Factories { get; }
Property Value
|
Edit this page
View Source
IsRelevant
Gets a value indicating whether this ServiceInfoCreator should be used
Declaration
public static bool IsRelevant { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
ServiceInfos
Gets a list of IServiceInfo that are configured in the applicaiton configuration
Declaration
public IList<IServiceInfo> ServiceInfos { get; }
Property Value
Methods
|
Edit this page
View Source
BuildServiceInfoFactories()
Declaration
protected virtual void BuildServiceInfoFactories()
|
Edit this page
View Source
FindFactory(Service)
Declaration
protected IServiceInfoFactory FindFactory(Service s)
Parameters
Type |
Name |
Description |
Service |
s |
|
Returns
|
Edit this page
View Source
GetServiceInfo(String)
Declaration
public IServiceInfo GetServiceInfo(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
Name of service info
|
Returns
|
Edit this page
View Source
GetServiceInfo<TServiceInfo>(String)
Declaration
public TServiceInfo GetServiceInfo<TServiceInfo>(string name)
where TServiceInfo : class
Parameters
Type |
Name |
Description |
System.String |
name |
Service name
|
Returns
Type |
Description |
TServiceInfo |
Service info or null
|
Type Parameters
Name |
Description |
TServiceInfo |
Service Info type
|
|
Edit this page
View Source
GetServiceInfos(Type)
Get all Service Infos of type
Declaration
public IEnumerable<IServiceInfo> GetServiceInfos(Type type)
Parameters
Type |
Name |
Description |
Type |
type |
Service Info Type to retrieve
|
Returns
Type |
Description |
IEnumerable<IServiceInfo> |
List of matching Service Infos
|
|
Edit this page
View Source
GetServiceInfos<TServiceInfo>()
Get all Service Infos of type
Declaration
public IEnumerable<TServiceInfo> GetServiceInfos<TServiceInfo>()
where TServiceInfo : class
Returns
Type |
Description |
IEnumerable<TServiceInfo> |
List of matching Service Infos
|
Type Parameters
Name |
Description |
TServiceInfo |
Service Info Type to retrieve
|
|
Edit this page
View Source
Instance(IConfiguration)
Declaration
public static ServiceInfoCreator Instance(IConfiguration config)
Parameters
Type |
Name |
Description |
IConfiguration |
config |
|
Returns