EventingSubscriberRegistrationContext
Handle
Context passed to ATS-friendly eventing subscriber registrations.
type EventingSubscriberRegistrationContext interface{}6 members
Properties
property
CancellationToken *CancellationToken getThe cancellation token associated with the subscriber registration.
CancellationToken() (*CancellationToken, error)property
ExecutionContext DistributedApplicationExecutionContext getThe execution context for the AppHost invocation.
ExecutionContext() DistributedApplicationExecutionContextMethods
method
OnAfterPublish Subscribes to the AfterPublish event from an eventing subscriber registration context.
OnAfterPublish(callback func(arg AfterPublishEvent)) DistributedApplicationEventSubscriptionParameters
callbackfunc(arg AfterPublishEvent) callbackThe callback to invoke when the event fires.Returns
DistributedApplicationEventSubscription The event subscription.
Returns a handle; failures surface later via Err().
method
OnAfterResourcesCreated Subscribes to the AfterResourcesCreated event from an eventing subscriber registration context.
OnAfterResourcesCreated(callback func(arg AfterResourcesCreatedEvent)) DistributedApplicationEventSubscriptionParameters
callbackfunc(arg AfterResourcesCreatedEvent) callbackThe callback to invoke when the event fires.Returns
DistributedApplicationEventSubscription The event subscription.
Returns a handle; failures surface later via Err().
method
OnBeforePublish Subscribes to the BeforePublish event from an eventing subscriber registration context.
OnBeforePublish(callback func(arg BeforePublishEvent)) DistributedApplicationEventSubscriptionParameters
callbackfunc(arg BeforePublishEvent) callbackThe callback to invoke when the event fires.Returns
DistributedApplicationEventSubscription The event subscription.
Returns a handle; failures surface later via Err().
method
OnBeforeStart Subscribes to the BeforeStart event from an eventing subscriber registration context.
OnBeforeStart(callback func(arg BeforeStartEvent)) DistributedApplicationEventSubscriptionParameters
callbackfunc(arg BeforeStartEvent) callbackThe callback to invoke when the event fires.Returns
DistributedApplicationEventSubscription The event subscription.
Returns a handle; failures surface later via Err().