Diffusion .NET Classic API - Core and Common  5.9.4
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
PushTechnology.DiffusionCore.Connection.Connectors.ExternalClient.Service.IServiceTopicListener Interface Reference

Listener for responses from a service topic. More...

Public Member Functions

void ServiceResponse (IServiceTopicResponse responseDetails)
 Notifies a response from a service request. More...
 
void ServiceError (IServiceTopicError errorDetails)
 Notifies an error on a service request. More...
 

Detailed Description

Listener for responses from a service topic.

A service topic is one that provides request/response capability (see IServiceTopicData). When a client subscribes to a service topic then a topic load message will be received by the client that indicates that is a service load message (message.IsServiceLoad).

In response to such a message, the client application should create an IServiceTopicHandler using the client connection ExternalClient.CreateServiceTopicHandler( ITopicMessage, IServiceTopicListener) method and declaring a listener of this type to receive all responses and notifications from the topic.

Member Function Documentation

void PushTechnology.DiffusionCore.Connection.Connectors.ExternalClient.Service.IServiceTopicListener.ServiceError ( IServiceTopicError  errorDetails)

Notifies an error on a service request.

This would indicate that a previous call to IServiceTopicHandler.Request( string, ITopicMessage ) has failed for some reason at the server.

Parameters
errorDetailsEncapsulates all details of the error.
void PushTechnology.DiffusionCore.Connection.Connectors.ExternalClient.Service.IServiceTopicListener.ServiceResponse ( IServiceTopicResponse  responseDetails)

Notifies a response from a service request.

This will return a response from a previous call of IServiceTopicHandler.Request( string, ITopicMessage ).

Parameters
responseDetailsEncapsulates all details of the response.