Udostępnij za pośrednictwem


INotificationHandler Interface

Definition

Provides an abstraction for hooking in custom code to the notification hub registration process. All public, non-abstract implementations of this interface will get picked up automatically by the default INotificationHandlerTypeResolver implementation and registered with the dependency engine, causing then to get called as part of the registration process.

public interface INotificationHandler
type INotificationHandler = interface
Public Interface INotificationHandler

Methods

Register(ApiServices, HttpRequestContext, NotificationRegistration)

This method is called when a client is registering to receive notifications. It is called just before the request is submitted to the Notification Hub and so the implementation of this method can modify the registration before it is submitted.

Unregister(ApiServices, HttpRequestContext, String)

This method is called when a client is unregistering to no longer receive notifications. It is called just before the request is submitted to the Notification Hub.

Applies to