Table of Contents

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

services IServiceCollection
options OrchestratorOptions

Properties

Options

Gets the orchestrator options that can be modified during configuration.

public OrchestratorOptions Options { get; }

Property Value

OrchestratorOptions

Services

Gets the service collection.

public IServiceCollection Services { get; }

Property Value

IServiceCollection

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

priority int

The execution priority. Lower values are applied first (innermost).

registration Action<IServiceCollection>

An action that calls services.Decorate<T, TDecorator>().