Class BowireAgentCatalogueServiceCollectionExtensions
- Namespace
- Kuestenlogik.Bowire.Catalogue.Agent
- Assembly
- Kuestenlogik.Bowire.Catalogue.Agent.dll
Wires the Bowire-Agent catalogue provider so it picks up its IConfiguration-bound options (#305 Phase E).
public static class BowireAgentCatalogueServiceCollectionExtensions
- Inheritance
-
BowireAgentCatalogueServiceCollectionExtensions
- Inherited Members
Methods
AddBowireAgentCatalogue(IServiceCollection, IConfiguration)
Bind Bowire:Discovery:Catalogue:Agent and replace the
parameterless-ctor provider in the
BowireCatalogueProviderAccessor with an
options-aware AgentCatalogueProvider. Same shape
as the Kubernetes sibling extension.
public static IServiceCollection AddBowireAgentCatalogue(this IServiceCollection services, IConfiguration configuration)
Parameters
servicesIServiceCollectionconfigurationIConfiguration
Returns
AddBowireAgentCatalogue(IServiceCollection, Action<BowireAgentCatalogueOptions>)
Overload for hosts that don't bind IConfiguration.
public static IServiceCollection AddBowireAgentCatalogue(this IServiceCollection services, Action<BowireAgentCatalogueOptions> configure)
Parameters
servicesIServiceCollectionconfigureAction<BowireAgentCatalogueOptions>