Class AbstractServiceOptions
Inheritance
System.Object
AbstractServiceOptions
Assembly: Steeltoe.Extensions.Configuration.Abstractions.dll
Syntax
public abstract class AbstractServiceOptions : AbstractOptions, IServicesInfo
Constructors
|
Edit this page
View Source
AbstractServiceOptions()
Declaration
protected AbstractServiceOptions()
|
Edit this page
View Source
AbstractServiceOptions(IConfiguration, String)
Declaration
protected AbstractServiceOptions(IConfiguration config, string sectionPrefix = "")
Parameters
Type |
Name |
Description |
IConfiguration |
config |
|
System.String |
sectionPrefix |
|
|
Edit this page
View Source
AbstractServiceOptions(IConfigurationRoot, String)
Declaration
protected AbstractServiceOptions(IConfigurationRoot root, string sectionPrefix = "")
Parameters
Type |
Name |
Description |
IConfigurationRoot |
root |
|
System.String |
sectionPrefix |
|
Properties
|
Edit this page
View Source
CONFIGURATION_PREFIX
Declaration
public virtual string CONFIGURATION_PREFIX { get; protected set; }
Property Value
Type |
Description |
System.String |
|
|
Edit this page
View Source
Label
Gets or sets a label describing the type of service
Declaration
public string Label { get; set; }
Property Value
Type |
Description |
System.String |
|
|
Edit this page
View Source
Name
Gets or sets the name of the service instance
Declaration
public string Name { get; set; }
Property Value
Type |
Description |
System.String |
|
|
Edit this page
View Source
Plan
Gets or sets a list of tags describing the service
Declaration
public string Plan { get; set; }
Property Value
Type |
Description |
System.String |
|
|
Edit this page
View Source
Services
Declaration
public Dictionary<string, IEnumerable<Service>> Services { get; set; }
Property Value
Type |
Description |
Dictionary<System.String, IEnumerable<Service>> |
|
|
Edit this page
View Source
Gets or sets the plan level at which the service is provisoned
Declaration
public IEnumerable<string> Tags { get; set; }
Property Value
Type |
Description |
IEnumerable<System.String> |
|
Methods
|
Edit this page
View Source
Bind(IConfiguration, String)
Declaration
public void Bind(IConfiguration configuration, string serviceName)
Parameters
Type |
Name |
Description |
IConfiguration |
configuration |
|
System.String |
serviceName |
|
|
Edit this page
View Source
GetInstancesOfType(String)
Declaration
public IEnumerable<Service> GetInstancesOfType(string serviceType)
Parameters
Type |
Name |
Description |
System.String |
serviceType |
|
Returns
Type |
Description |
IEnumerable<Service> |
|
|
Edit this page
View Source
GetServicesList()
Declaration
public IEnumerable<Service> GetServicesList()
Returns
Type |
Description |
IEnumerable<Service> |
|
Implements