Class OrchestratorBuilder
- Namespace
- Bielu.Microservices.Orchestrator.Configuration
- Assembly
- Bielu.Microservices.Orchestrator.dll
Builder for configuring the microservices orchestrator.
public class OrchestratorBuilder
- Inheritance
-
OrchestratorBuilder
- Inherited Members
- Extension Methods
Constructors
OrchestratorBuilder(IServiceCollection, OrchestratorOptions)
Creates a new instance of OrchestratorBuilder.
public OrchestratorBuilder(IServiceCollection services, OrchestratorOptions options)
Parameters
servicesIServiceCollectionoptionsOrchestratorOptions
Properties
Options
Gets the orchestrator options that can be modified during configuration.
public OrchestratorOptions Options { get; }
Property Value
Services
Gets the service collection.
public IServiceCollection Services { get; }
Property Value
Methods
AddDeferredDecorator(int, Action<IServiceCollection>)
Queues a decorator registration to be applied after all builder configuration
has completed. Decorators are applied in ascending priority
order so that lower-priority decorators wrap closer to the provider and
higher-priority decorators wrap outermost.
Each decorator package defines its own priority constant (e.g.
StateTrackingContainerManagerDecorator.DecoratorPriority = 100,
OpenTelemetryBuilderExtensions.DecoratorPriority = 900).
public void AddDeferredDecorator(int priority, Action<IServiceCollection> registration)
Parameters
priorityintThe execution priority. Lower values are applied first (innermost).
registrationAction<IServiceCollection>An action that calls
services.Decorate<T, TDecorator>().