Skip to main content

DelegateTenantFeatureSwitches

Namespace: Meshmakers.Octo.Sdk.ServiceClient.TenantLifecycle

ITenantFeatureSwitches over four delegates, so a host composes the switches from whatever clients it holds (octo-cli builds them from its service URLs, the MCP server from its client factory).

public sealed class DelegateTenantFeatureSwitches : ITenantFeatureSwitches

Inheritance Object → DelegateTenantFeatureSwitches
Implements ITenantFeatureSwitches

Constructors​

DelegateTenantFeatureSwitches(Func<Task>, Func<Task>, Func<Task>, Func<Task>)​

ITenantFeatureSwitches over four delegates, so a host composes the switches from whatever clients it holds (octo-cli builds them from its service URLs, the MCP server from its client factory).

public DelegateTenantFeatureSwitches(Func<Task> disableAi, Func<Task> disableCommunication, Func<Task> disableReporting, Func<Task> disableStreamData)

Parameters​

disableAi Func<Task>

disableCommunication Func<Task>

disableReporting Func<Task>

disableStreamData Func<Task>

Methods​

DisableAiAsync()​

public Task DisableAiAsync()

Returns​

Task

DisableCommunicationAsync()​

public Task DisableCommunicationAsync()

Returns​

Task

DisableReportingAsync()​

public Task DisableReportingAsync()

Returns​

Task

DisableStreamDataAsync()​

public Task DisableStreamDataAsync()

Returns​

Task