IBlueprintNotifications
Namespace: Meshmakers.Octo.Runtime.Contracts.Blueprints
Audit-trail sink for blueprint lifecycle events.
public interface IBlueprintNotifications
Remarks:
The engine raises these notifications at the boundaries of every blueprint operation. The default in-process implementation logs only. Service-layer hosts (e.g. octo-asset-repo-services) replace it with an adapter that republishes the notifications to the distribution event hub.
Methods
NotifyAppliedAsync(BlueprintAppliedNotification, CancellationToken)
Raised after a blueprint was successfully applied to a tenant.
Task NotifyAppliedAsync(BlueprintAppliedNotification notification, CancellationToken cancellationToken)
Parameters
notification BlueprintAppliedNotification
cancellationToken CancellationToken
Returns
NotifyUpdatedAsync(BlueprintUpdatedNotification, CancellationToken)
Raised after a tenant's blueprint was updated to a new version.
Task NotifyUpdatedAsync(BlueprintUpdatedNotification notification, CancellationToken cancellationToken)
Parameters
notification BlueprintUpdatedNotification
cancellationToken CancellationToken
Returns
NotifyRolledBackAsync(BlueprintRolledBackNotification, CancellationToken)
Raised after a tenant was rolled back from a backup.
Task NotifyRolledBackAsync(BlueprintRolledBackNotification notification, CancellationToken cancellationToken)
Parameters
notification BlueprintRolledBackNotification
cancellationToken CancellationToken
Returns
NotifyUninstalledAsync(BlueprintUninstalledNotification, CancellationToken)
Raised after a blueprint was uninstalled from a tenant.
Task NotifyUninstalledAsync(BlueprintUninstalledNotification notification, CancellationToken cancellationToken)
Parameters
notification BlueprintUninstalledNotification
cancellationToken CancellationToken
Returns
NotifyOperationFailedAsync(BlueprintOperationFailedNotification, CancellationToken)
Raised when any blueprint operation fails.
Task NotifyOperationFailedAsync(BlueprintOperationFailedNotification notification, CancellationToken cancellationToken)
Parameters
notification BlueprintOperationFailedNotification
cancellationToken CancellationToken