Diffusion .NET Client Library  6.1.5
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
PushTechnology.ClientInterface.Client.Callbacks.IRegistration Interface Reference

The reference to a registered handler. More...

Inheritance diagram for PushTechnology.ClientInterface.Client.Callbacks.IRegistration:
PushTechnology.ClientInterface.Client.Features.Control.Topics.INotificationRegistration

Public Member Functions

Task< object > Close ()
 Requests that the handler is unregistered from the server. More...
 
Task< object > CloseAsync ()
 Requests that the handler is unregistered from the server. More...
 

Detailed Description

The reference to a registered handler.

Such a handler reference is provided whenever a handler with a server side presence is registered.

Added in version 5.1.

Member Function Documentation

Task<object> PushTechnology.ClientInterface.Client.Callbacks.IRegistration.Close ( )

Requests that the handler is unregistered from the server.

After the handler is unregistered, the handler's

OnClose

method will be called.

A handler can only be unregistered once. A given instance will return the same Task if this method is called more than once.

If the returned Task completes successfully, the result will be

null

.

This method has been deprecated in version 6.1. Use CloseAsync instead.

Returns
The Task representing the current operation.
Exceptions
Session.SessionClosedExceptionThe session is closed. Thrown by the returned Task.
Task<object> PushTechnology.ClientInterface.Client.Callbacks.IRegistration.CloseAsync ( )

Requests that the handler is unregistered from the server.

After the handler is unregistered, the handler's

OnClose

method will be called.

A handler can only be unregistered once. A given instance will return the same Task if this method is called more than once.

If the returned Task completes successfully, the result will be

null

.

Added in version 6.1.

Returns
The Task representing the current operation.
Exceptions
Session.SessionClosedExceptionThe session is closed. Thrown by the returned Task.

The documentation for this interface was generated from the following file: