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
builderOrchestratorBuilderThe orchestrator builder.
providerNamestringThe provider name. Must not be null or empty.
Returns
- OrchestratorBuilder
The builder for chaining.
Exceptions
- ArgumentException
Thrown when
providerNameis 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
builderOrchestratorBuilderThe orchestrator builder.
managedOnlybooltrueto restrict to orchestrator-managed containers;falseto show all containers on the host.
Returns
- OrchestratorBuilder
The builder for chaining.