![]() |
Diffusion .NET Classic API - Core and Common
5.9.4
|
Implementation of IServiceTopicHandler. More...
Public Member Functions | |
ServiceTopicHandlerImpl (IDiffusionClientConnector client, ITopicMessage loadMessage, IServiceTopicListener listener) | |
Constructor. More... | |
string | Request (string requestType, ITopicMessage data) |
Sends a request to the service. More... | |
string | Request (string requestType, string requestId, ITopicMessage data) |
Sends a request to the service. More... | |
bool | HandleTopicMessage (IMessageSource source, ITopicMessage message) |
Handles a message received from an IMessageSource. More... | |
string | GetNextRequestId () |
Returns a new unique request identifier that may be used in the Request( string, string, ITopicMessage ) call. More... | |
Properties | |
IDiffusionClientConnector | Client [get, set] |
Get/set the client connection object. More... | |
IDiffusionClientConnector | Connection [get] |
Returns the client connection. More... | |
string | ServiceType [get] |
Returns the service type. More... | |
ITopicMessage | ServiceData [get] |
Returns a message containing any fixed data returned by the service on subscription. More... | |
![]() | |
IDiffusionClientConnector | Connection [get] |
Returns the client connection. More... | |
string | ServiceType [get] |
Returns the service type. More... | |
ITopicMessage | ServiceData [get] |
Returns a message containing any fixed data returned by the service on subscription. More... | |
Implementation of IServiceTopicHandler.
PushTechnology.DiffusionCore.Messaging.Data.Service.ServiceTopicHandlerImpl.ServiceTopicHandlerImpl | ( | IDiffusionClientConnector | client, |
ITopicMessage | loadMessage, | ||
IServiceTopicListener | listener | ||
) |
Constructor.
client | |
loadMessage | |
listener |
string PushTechnology.DiffusionCore.Messaging.Data.Service.ServiceTopicHandlerImpl.GetNextRequestId | ( | ) |
Returns a new unique request identifier that may be used in the Request( string, string, ITopicMessage ) call.
Implements PushTechnology.DiffusionCore.Connection.Connectors.ExternalClient.Service.IServiceTopicHandler.
bool PushTechnology.DiffusionCore.Messaging.Data.Service.ServiceTopicHandlerImpl.HandleTopicMessage | ( | IMessageSource | source, |
ITopicMessage | message | ||
) |
Handles a message received from an IMessageSource.
This will handle an incoming message from a specified source.
source | The message source. |
message | The message. |
Implements PushTechnology.DiffusionCore.Messaging.Topic.ITopicListener.
string PushTechnology.DiffusionCore.Messaging.Data.Service.ServiceTopicHandlerImpl.Request | ( | string | requestType, |
ITopicMessage | data | ||
) |
Sends a request to the service.
If the request succeeds then a response will be returned on IServiceTopicListener.ServiceResponse( IServiceTopicResponse ) and if it fails or is timed out at the server then an error will be returned on IServiceTopicListener.ServiceError( ServiceTopicError ).
requestType | The request type. This must be one of the allowed types for the service. |
data | Optional request data. If supplied, then the headers and data from the given message will be sent with the request. |
Implements PushTechnology.DiffusionCore.Connection.Connectors.ExternalClient.Service.IServiceTopicHandler.
string PushTechnology.DiffusionCore.Messaging.Data.Service.ServiceTopicHandlerImpl.Request | ( | string | requestType, |
string | requestId, | ||
ITopicMessage | data | ||
) |
Sends a request to the service.
If the request succeeds then a response will be returned on IServiceTopicListener.ServiceResponse( IServiceTopicResponse ) and if it fails or is timed out at the server then an error will be returned on IServiceTopicListener.ServiceError( ServiceTopicError ).
requestType | The request type. This must be one of the allowed types for the service. |
requestId | A unique request identifier. This must be unique - the GetNextRequestId method may be used to generate a unique identifier. If the identifier passed is not unique then the results will be unpredictable. |
data | Optional request data. If supplied, then the headers and data from the given message will be sent with the request. |
Implements PushTechnology.DiffusionCore.Connection.Connectors.ExternalClient.Service.IServiceTopicHandler.
|
getset |
Get/set the client connection object.
|
get |
Returns the client connection.
|
get |
Returns a message containing any fixed data returned by the service on subscription.
The message may contain headers and/or data as set in the IServiceTopicData or may be empty if no data was set.
|
get |
Returns the service type.
This is the service type as returned by the IServiceTopicData.