INotificationHandler.Unregister Method

Definition

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.

public System.Threading.Tasks.Task Unregister (Microsoft.WindowsAzure.Mobile.Service.ApiServices services, System.Web.Http.Controllers.HttpRequestContext context, string deviceId);
abstract member Unregister : Microsoft.WindowsAzure.Mobile.Service.ApiServices * System.Web.Http.Controllers.HttpRequestContext * string -> System.Threading.Tasks.Task
Public Function Unregister (services As ApiServices, context As HttpRequestContext, deviceId As String) 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.

deviceId
String

The id identifying the registration.

Returns

A Task representing the unregistration 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