C# Class PhotoSharingApp.Universal.Services.NotificationRegistrationClient

Register/update/delete notification registration for the client.
Exibir arquivo Open project: Microsoft/Appsample-Photosharing Class Usage Examples

Public Methods

Method Description
DeleteRegistrationAsync ( ) : Task

Delete the registration for locally stored registration.

NotificationRegistrationClient ( ) : System

Notification registration client constructor.

RegisterAsync ( string handle, IEnumerable tags ) : System.Threading.Tasks.Task

Registers the a notification hub handle with specified notification tags.

Private Methods

Method Description
RetrieveRegistrationIdOrRequestNewOneAsync ( string handle ) : Task

Retrieves or create a registration id and then stores it in local setting for easy access.

UpdateRegistrationAsync ( string registrationId, DeviceRegistrationContract deviceRegistrationContract ) : Task

Updates the existing registration with the new device registration contract with tags.

Method Details

DeleteRegistrationAsync() public method

Delete the registration for locally stored registration.
public DeleteRegistrationAsync ( ) : Task
return Task

NotificationRegistrationClient() public method

Notification registration client constructor.
public NotificationRegistrationClient ( ) : System
return System

RegisterAsync() public method

Registers the a notification hub handle with specified notification tags.
public RegisterAsync ( string handle, IEnumerable tags ) : System.Threading.Tasks.Task
handle string The notification handle to register with..
tags IEnumerable The tags to register.
return System.Threading.Tasks.Task