Table of Contents

Class ServiceInfoCreator

Namespace
Steeltoe.Connector
Assembly
Steeltoe.Connector.ConnectorBase.dll
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

IConfiguration

Factories

Gets a list of IServiceInfoFactory available for finding IServiceInfos

protected IList<IServiceInfoFactory> Factories { get; }

Property Value

IList<IServiceInfoFactory>

IsRelevant

Gets a value indicating whether this ServiceInfoCreator should be used

public static bool IsRelevant { get; }

Property Value

bool

ServiceInfos

Gets a list of IServiceInfo that are configured in the applicaiton configuration

public IList<IServiceInfo> ServiceInfos { get; }

Property Value

IList<IServiceInfo>

Methods

BuildServiceInfoFactories()

protected virtual void BuildServiceInfoFactories()

FindFactory(Service)

protected IServiceInfoFactory FindFactory(Service s)

Parameters

s Service

Returns

IServiceInfoFactory

GetServiceInfo(string)

Get a named Service Info

public IServiceInfo GetServiceInfo(string name)

Parameters

name string

Name 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 string

Service 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 Type

Service 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

Returns

ServiceInfoCreator