INotificationHandler.Register Method

Definition

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.

public System.Threading.Tasks.Task Register (Microsoft.WindowsAzure.Mobile.Service.ApiServices services, System.Web.Http.Controllers.HttpRequestContext context, Microsoft.WindowsAzure.Mobile.Service.Notifications.NotificationRegistration registration);
abstract member Register : Microsoft.WindowsAzure.Mobile.Service.ApiServices * System.Web.Http.Controllers.HttpRequestContext * Microsoft.WindowsAzure.Mobile.Service.Notifications.NotificationRegistration -> System.Threading.Tasks.Task
Public Function Register (services As ApiServices, context As HttpRequestContext, registration As NotificationRegistration) As Task

Parameters

services
ApiServices

The ApiServices for this service.

context
System.Web.Http.Controllers.HttpRequestContext

The System.Web.Http.Controllers.HttpRequestContext providing information about the request.

registration
NotificationRegistration

The NotificationRegistration describing this registration.

Returns

A Task representing the registration handler operation.

Remarks

If this method throws an HttpResponseException then the registration process will terminate immediately and the HttpResponseMessage will be used as the HTTP response. Any other unhandled exception will cause the registration process to terminate with an error.

Applies to