Interface IRegisteredHandler
The reference to a registered handler.
Namespace: PushTechnology.ClientInterface.Client.Features
Assembly: Diffusion.Client.dll
Syntax
[Obsolete("This interface is only used by deprecated methods and will beremoved in a future release.", false)]
public interface IRegisteredHandler
Remarks
Caution
Deprecated since 6.7. This interface is only used by deprecated methods and will be removed in a future release.
Such a handler reference is provided whenever a handler with a server side presence is registered.
Added in version 5.0.
Methods
CloseAsync()
Requests that the handler is unregistered from the server.
Declaration
Task<object> CloseAsync()
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<System.Object> | The |
Remarks
After the handler is unregistered, the handler's OnClose method
will be called. If the handler has already been unregistered, calling
this method has no effect.
If the returned Task completes successfully, the result
will be null.
Added in version 6.1
Exceptions
| Type | Condition |
|---|---|
| SessionClosedException | The session is closed. Thrown by the returned |