Zum Hauptinhalt springen

TenantFeatureDisabler

Namespace: Meshmakers.Octo.Sdk.ServiceClient.TenantLifecycle

Switches off every capability a tenant has enabled, so the tenant can be deleted. Shared by octo-cli Delete --disable-features and the MCP tool delete_tenant (disableFeatures).

public static class TenantFeatureDisabler

Inheritance Object → TenantFeatureDisabler

Remarks:

Reads nothing and deletes nothing itself: the caller reads the state (), supplies the switches bound to the tenant's own token and deletes afterwards. Order: AI Services before Communication (it runs on it), Stream Data last. A capability that refuses does not stop the others - the report carries the reason, e.g. activated archives, which are reported and never removed here.

Methods​

DisplayName(TenantFeatureKind)​

The display name used in messages.

public static string DisplayName(TenantFeatureKind feature)

Parameters​

feature TenantFeatureKind

Returns​

String

GetEnabled(TenantFeaturesStatusDto)​

The capabilities status reports as enabled, in switch-off order.

public static IReadOnlyList<TenantFeatureKind> GetEnabled(TenantFeaturesStatusDto status)

Parameters​

status TenantFeaturesStatusDto

Returns​

IReadOnlyList<TenantFeatureKind>

DisableEnabledAsync(TenantFeaturesStatusDto, ITenantFeatureSwitches)​

Switches off every capability status reports as enabled.

public static Task<TenantFeatureDisableReport> DisableEnabledAsync(TenantFeaturesStatusDto status, ITenantFeatureSwitches switches)

Parameters​

status TenantFeaturesStatusDto

switches ITenantFeatureSwitches

Returns​

Task<TenantFeatureDisableReport>