Table of Contents

Class OrchestratorBuilderExtensions

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

Fluent API extension methods for OrchestratorBuilder.

public static class OrchestratorBuilderExtensions
Inheritance
OrchestratorBuilderExtensions
Inherited Members

Methods

WithDefaultProvider(OrchestratorBuilder, string)

Sets the default runtime provider name (e.g. "Docker", "Containerd").

public static OrchestratorBuilder WithDefaultProvider(this OrchestratorBuilder builder, string providerName)

Parameters

builder OrchestratorBuilder

The orchestrator builder.

providerName string

The provider name. Must not be null or empty.

Returns

OrchestratorBuilder

The builder for chaining.

Exceptions

ArgumentException

Thrown when providerName is null or empty.

WithManagedContainersOnly(OrchestratorBuilder, bool)

Configures the orchestrator to only list and manage containers it created. This is the default behavior.

public static OrchestratorBuilder WithManagedContainersOnly(this OrchestratorBuilder builder, bool managedOnly = true)

Parameters

builder OrchestratorBuilder

The orchestrator builder.

managedOnly bool

true to restrict to orchestrator-managed containers; false to show all containers on the host.

Returns

OrchestratorBuilder

The builder for chaining.