Skip to main content

ITenantBlueprintHistory

Namespace: Meshmakers.Octo.Runtime.Contracts.Blueprints

Service for tracking blueprint application history per tenant

public interface ITenantBlueprintHistory

Methods

GetHistoryAsync(String, CancellationToken)

Gets the complete blueprint application history for a tenant

Task<IReadOnlyList<TenantBlueprintInfo>> GetHistoryAsync(string tenantId, CancellationToken cancellationToken)

Parameters

tenantId String
Tenant identifier

cancellationToken CancellationToken
Cancellation token

Returns

Task<IReadOnlyList<TenantBlueprintInfo>>
List of blueprint applications in chronological order

GetCurrentAsync(String, CancellationToken)

Gets the currently active blueprint for a tenant

Task<TenantBlueprintInfo> GetCurrentAsync(string tenantId, CancellationToken cancellationToken)

Parameters

tenantId String
Tenant identifier

cancellationToken CancellationToken
Cancellation token

Returns

Task<TenantBlueprintInfo>
Current blueprint info, or null if no blueprint was applied

AddEntryAsync(String, TenantBlueprintInfo, CancellationToken)

Records a new blueprint application

Task AddEntryAsync(string tenantId, TenantBlueprintInfo info, CancellationToken cancellationToken)

Parameters

tenantId String
Tenant identifier

info TenantBlueprintInfo
Blueprint application info

cancellationToken CancellationToken
Cancellation token

Returns

Task

HasBlueprintAsync(String, CancellationToken)

Checks if a tenant has any blueprint applied

Task<bool> HasBlueprintAsync(string tenantId, CancellationToken cancellationToken)

Parameters

tenantId String
Tenant identifier

cancellationToken CancellationToken
Cancellation token

Returns

Task<Boolean>
True if a blueprint was applied to this tenant