Diffusion .NET Client Library
6.1.5
|
Abstract default server handler. More...
Public Member Functions | |
virtual void | OnRegistered (IRegistration registration) |
Called when the handler has been successfully registered with the server. More... | |
virtual void | OnClose () |
Called if the handler is closed. The handler will be closed if the session is closed after the handler has been registered, or if the handler is unregistered using close. More... | |
virtual void | OnError (ErrorReason errorReason) |
Notification of a contextual error related to this handler. This is analogous to an unchecked exception being raised. Situations in which onError is called include the session being closed before the handler is registered, a communication timeout, or a problem with the provided parameters. No further calls will be made to this handler. More... | |
Abstract default server handler.
The methods on this handler simply log callbacks at debug level.
|
virtual |
Called if the handler is closed. The handler will be closed if the session is closed after the handler has been registered, or if the handler is unregistered using close.
No further calls will be made for the handler.
Implements PushTechnology.ClientInterface.Client.Callbacks.IServerHandler.
|
virtual |
Notification of a contextual error related to this handler. This is analogous to an unchecked exception being raised. Situations in which onError
is called include the session being closed before the handler is registered, a communication timeout, or a problem with the provided parameters. No further calls will be made to this handler.
errorReason | a value representing the error; this can be one of constants defined in ErrorReason, or a feature-specific reason |
Implements PushTechnology.ClientInterface.Client.Callbacks.IServerHandler.
|
virtual |
Called when the handler has been successfully registered with the server.
A session can register at most one a single handler of each type. If there is already a handler registered the operation will fail, registeredHandler
will be closed, and the session error handler will be notified. To change the handler, first close the previous handler.
registration | reference that allows the handler to be closed |
Implements PushTechnology.ClientInterface.Client.Callbacks.IServerHandler.