Table of Contents

Class InstanceStoreBuilderExtensions

Namespace
Bielu.Microservices.Orchestrator.Extensions
Assembly
Bielu.Microservices.Orchestrator.dll

Extension methods for configuring instance state storage on the OrchestratorBuilder.

public static class InstanceStoreBuilderExtensions
Inheritance
InstanceStoreBuilderExtensions
Inherited Members

Methods

UseInMemoryInstanceStore(OrchestratorBuilder)

Registers the in-memory instance store. This is the default store and does not persist state across orchestrator restarts.

public static OrchestratorBuilder UseInMemoryInstanceStore(this OrchestratorBuilder builder)

Parameters

builder OrchestratorBuilder

The orchestrator builder.

Returns

OrchestratorBuilder

The builder for chaining.

WithStateTracking(OrchestratorBuilder)

Enables state tracking so that create, remove, and scale operations are automatically persisted to the registered IInstanceStore. Also registers the InstanceRecoveryService hosted service for startup reconciliation.

The state-tracking decorator is applied at DecoratorPriority priority, ensuring it always wraps closest to the provider regardless of registration order relative to other decorators.

public static OrchestratorBuilder WithStateTracking(this OrchestratorBuilder builder)

Parameters

builder OrchestratorBuilder

The orchestrator builder.

Returns

OrchestratorBuilder

The builder for chaining.