OnBeforePublish
Method
func (EventingSubscriberRegistrationContext) OnBeforePublish(callback func(arg BeforePublishEvent)) DistributedApplicationEventSubscriptionSignature
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().
Applies to
This method applies to the following types: