Diffusion .NET Classic API - Core and Common  5.9.4
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient > Class Template Reference

This class is responsible for the connection attempts to the Diffusion server. More...

Inheritance diagram for PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >:
PushTechnology.DiffusionCore.Connection.Interfaces.IServerConnectionListener PushTechnology.DiffusionCore.Messaging.Topic.ITopicListener PushTechnology.DiffusionCore.Connection.Interfaces.IDiffusionClientEvents PushTechnology.DiffusionCore.Connection.Interfaces.IDiffusionConnectorEvents PushTechnology.DiffusionCore.Connection.Interfaces.IDiffusionClientEventMethods PushTechnology.DiffusionCore.Connection.ICascadable

Public Member Functions

 DiffusionConnectionService (TClient client)
 Constructor. More...
 
bool HandleTopicMessage (IMessageSource source, ITopicMessage message)
 Handles a message received from an IMessageSource. This will handle an incoming message from a specified source. More...
 
void Connect ()
 Attempts to establish a connection to a Diffusion server. More...
 
void AddServerConnectionListener (IServerConnectionListener listener)
 Adds a server connection listener. More...
 
void Reset ()
 Performs a 'reset' of connector indices, etc. More...
 
void SetMaximumPacketSize (int size)
 Set the maximum socket buffer size (both input and output). More...
 
void SetPingListener (IServerPingResponseListener listener)
 Set the ping message listener. More...
 
void SetAckListener (IServerAckListener listener)
 Set the acknowledgement message listener. More...
 
void SetAckTimeout (long timeout)
 Set the acknowledgement message timeout. More...
 
void SetAutoAcknowledging (bool autoAcknowledge)
 Determines whether acknowledgement messages are responded to automatically. More...
 
void SetConnectionDetails (IConnectionDetails connectionDetails)
 Sets the connection details. More...
 
void SetCredentials (V4Credentials credentials)
 Sets the credentials. More...
 
bool IsLastConnector ()
 Returns whether the active connector is the last in the list of connectors. More...
 
IServiceTopicHandler CreateServiceTopicHandler (IDiffusionClientConnector client, ITopicMessage message, IServiceTopicListener listener)
 Creates a handler object for a 'service' topic. This would be called in response to receiving an ITopicMessage.IsServiceLoad message from a service topic as a result of subscribing to it. Note that no other messages would be received from a service topic other than via the specified IServiceTopicListener. More...
 
IPagedTopicHandler CreatePagedTopicHandler (ITopicMessage message, IPagedTopicListener listener)
 Adds a handler object for a 'paged' Topic. This would be called in response to receiving an ITopicMessage.IsPagedLoad message from a paged topic as a result of subscribing to it. Note that no other messages would be received from a paged topic until the returned handler is used to IPagedTopicHandler.Open( int, int ) the topic. More...
 
ITopicNotifyTopicHandler CreateTopicNotifyTopicHandler (IDiffusionClientConnector client, ITopicMessage message, ITopicNotifyTopicListener listener)
 Create a topic notify handler. More...
 
void SetActiveTransport ()
 Helper method to set the active transport (if possible) More...
 
void SubscribeToExternalEvents ()
 Method to allow external classes to subscribe to the various events. More...
 
void UnsubscribeFromExternalEvents ()
 Method to allow external classes to unsubscribe from the various events. More...
 
void ServerConnected (IDiffusionClientConnector connector)
 Notification of connection. This is called when a connection to a server is established. More...
 
void ServerConnectionAttemptFailed (IDiffusionClientConnector connector, ServerClosedEventArgs args)
 Notification of a failed connection attempt. The reason for the failure can be established by checking the state of the connection using IDiffusionClientConnector.State. More...
 
void ServerTopicStatusChanged (IDiffusionClientConnector connector, string topicName, TopicStatus statusType)
 Notification that the status for a topic that was subscribed to has changed. More...
 
void ServerRejectedCredentials (IDiffusionClientConnector connector, V4Credentials credentials)
 Notification of rejected credentials from the server. More...
 
void ServerDisconnected (IDiffusionClientConnector connector, ServerClosedEventArgs args)
 Notification of disconnection. The reason for the disconnection can be established by checking the state of the connection using IDiffusionClientConnector.State. More...
 
void RaiseServerPingReceivedEvent (MessageImpl message, IDiffusionClientConnector connector)
 Raise the 'server ping received' message event. More...
 
void RaisePingResponseReceivedEvent (MessageImpl message, IDiffusionClientConnector connector)
 Raise the ping response received message event. More...
 
void RaiseCredentialsRejectedEvent (MessageImpl message, IDiffusionClientConnector connector)
 Raise the credentials rejected message event. More...
 
void RaiseTopicMessageReceivedEvent (TopicMessageImpl message, IDiffusionClientConnector connector)
 Raise the topic message received event. More...
 
void RaiseTopicStatusChangedEvent (TopicStatusMessage message, IDiffusionClientConnector connector)
 Raise the topic status changed event. More...
 
void RaiseServerConnectedEvent (IDiffusionClientConnector connector)
 Raise the server connected event. More...
 
void RaiseServerConnectionAttemptFailedEvent (ServerClosedEventArgs args, IDiffusionClientConnector connector)
 Raise the server connection failure event. More...
 
void RaiseServerDisconnectedEvent (ServerClosedEventArgs args, IDiffusionClientConnector connector)
 Raise the server disconnected event. More...
 
void RaiseServerRejectedCredentialsEvent (V4Credentials credentials, IDiffusionClientConnector connector)
 Raise the server rejected credentials event. More...
 
void RaiseMessageAcknowledgedEvent (TopicMessageImpl message, IDiffusionClientConnector connector)
 Raise the message acknowledged event. More...
 
void RaiseMessageNotAcknowledgedEvent (TopicMessageImpl message, IDiffusionClientConnector connector)
 Raise the message not acknowledged event. More...
 

Properties

TClient Client [get, set]
 Get the client object. More...
 
int MaxPacketSize [get, set]
 Get/set the maximum socket buffer size. More...
 
IDiffusionClientConnector ActiveTransport [get, set]
 Get/set the active transport. More...
 
IDiffusionClientTcpConnection ActiveTransportBase [get]
 Get the active transport base. More...
 
IServerDetails ActiveServerDetails [get]
 Returns the active set of server details. More...
 
ServerDetailsFactory ServerDetailsList [get]
 Gets the server details factory object. More...
 
IConnectionDetails ConnectionDetails [get, set]
 Get/set the connection details. More...
 
ReadOnlyCollection
< IServerConnectionListener
ServerConnectionListeners [get, set]
 Get/set the default message listener. More...
 
IServerPingResponseListener PingListener [get, set]
 Get/set the ping message listener. More...
 
IServerAckListener AckListener [get, set]
 Get/set the acknowledgement message listener. More...
 
long AckTimeout [get, set]
 Get/set the acknowledgement message timeout. More...
 
bool IsAutoAcknowledging [get, set]
 Gets/sets whether reponses to 'ack' messages are automatic. More...
 
IDiffusionReconnector Reconnector [get, set]
 Get/set the 'subscriber' to the connection calls. More...
 
bool StopConnectionService [get, set]
 Flag to request that the connection service stops when it has finished its most recent connection attempt. More...
 
bool IsRunning [get, set]
 Indicates whether the service is running. More...
 
Dictionary< ITopicListener,
List< TopicSet > > 
TopicListeners [get, set]
 Get/set the topic listener dictionary object. More...
 
ConcurrentBag< TopicListenerImplActionListeners [get, set]
 Get/set the event listener dictionary object. More...
 
List< ServiceTopicHandlerImplServiceTopicHandlers [get, set]
 Get/set the service topic handlers. More...
 
List< PagedTopicHandlerImplPagedTopicHandlers [get, set]
 Get/set the paged topic handlers. More...
 
List< TopicNotifyTopicHandlerImplNotifyTopicHandlers [get, set]
 Get/set the notify topic handlers. More...
 
bool RestoreState [get, set]
 Indicates whether to attempt to restore state with an accordingly-configured Diffusion server upon loss of connection and subsequent reconnection. More...
 
ConnectionCapabilities Capabilities [get, set]
 Get/set the connection capabilities. More...
 
- Properties inherited from PushTechnology.DiffusionCore.Connection.ICascadable
bool RestoreState [get, set]
 Indicates whether to attempt to restore state with an accordingly-configured Diffusion server upon loss of connection and subsequent reconnection. More...
 

Events

EventHandler
< ServerDetailsEventArgs
ConnectionDetailsAcquired
 The event which is fired when a set of server details is acquired from the list. More...
 
EventHandler< EventArgs > ConnectionServiceStopped
 The event raised when the connection service is stopped. More...
 
EventHandler< MessageEventArgs
< TopicMessageImpl > > 
TopicMessageReceived
 The event raised when a topic message is received from the Diffusion server. More...
 
EventHandler< MessageEventArgs
< TopicStatusMessage > > 
TopicStatusChanged
 The event raised when the status of a topic is changed. More...
 
EventHandler< MessageEventArgs
< ClientPingMessageImpl > > 
ServerPingReceived
 The event raised when a ping is received from the server. More...
 
EventHandler< MessageEventArgs
< ServerPingMessageImpl > > 
PingResponseReceived
 The event raised when a ping message is received from the Diffusion server. More...
 
EventHandler< MessageEventArgs
< CredentialsRejectedMessage > > 
CredentialsRejectedReceived
 The event raised when credentials are rejected by the Diffusion server. More...
 
EventHandler
< ServerClosedEventArgs
DiffusionServerConnectionAttemptFailed
 The event raised when connection to the Diffusion server fails. More...
 
EventHandler< MessageEventArgs
< TopicMessageImpl > > 
DiffusionServerConnected
 The event raised when connection has been established to the Diffusion server. More...
 
EventHandler
< ServerClosedEventArgs
DiffusionServerDisconnected
 The event raised when connection is lost to the Diffusion server. More...
 
EventHandler
< ServerRejectedCredentialsEventArgs
DiffusionServerCredentialsRejected
 The event raised when credentials are rejected by the Diffusion server. More...
 
EventHandler< MessageEventArgs
< TopicMessageImpl > > 
MessageAcknowledged
 The event raised when a message has been acknowledged by the Diffusion server. More...
 
EventHandler< MessageEventArgs
< TopicMessageImpl > > 
MessageNotAcknowledged
 The event raised when a message has not been acknowledged by the Diffusion server. More...
 
EventHandler< EventArgs > ConnectionSequenceExhausted
 The event raised when the set of server details is exhausted. More...
 
- Events inherited from PushTechnology.DiffusionCore.Connection.Interfaces.IDiffusionClientEvents
EventHandler< MessageEventArgs
< TopicMessageImpl > > 
TopicMessageReceived
 The event raised when a topic message is received from the Diffusion server. More...
 
EventHandler< MessageEventArgs
< TopicStatusMessage > > 
TopicStatusChanged
 The event raised when the status of a topic is changed. More...
 
EventHandler< MessageEventArgs
< ClientPingMessageImpl > > 
ServerPingReceived
 The event raised when a ping is received from the server. More...
 
EventHandler< MessageEventArgs
< ServerPingMessageImpl > > 
PingResponseReceived
 The event raised when a ping message is received from the Diffusion server. More...
 
EventHandler< MessageEventArgs
< CredentialsRejectedMessage > > 
CredentialsRejectedReceived
 The event raised when credentials are rejected by the Diffusion server. More...
 
EventHandler
< ServerClosedEventArgs
DiffusionServerConnectionAttemptFailed
 The event raised when connection to the Diffusion server fails. More...
 
EventHandler< MessageEventArgs
< TopicMessageImpl > > 
DiffusionServerConnected
 The event raised when connection has been established to the Diffusion server. More...
 
EventHandler
< ServerClosedEventArgs
DiffusionServerDisconnected
 The event raised when connection is lost to the Diffusion server. More...
 
EventHandler
< ServerRejectedCredentialsEventArgs
DiffusionServerCredentialsRejected
 The event raised when credentials are rejected by the Diffusion server. More...
 
EventHandler< MessageEventArgs
< TopicMessageImpl > > 
MessageAcknowledged
 The event raised when a message has been acknowledged by the Diffusion server. More...
 
EventHandler< MessageEventArgs
< TopicMessageImpl > > 
MessageNotAcknowledged
 The event raised when a message has not been acknowledged by the Diffusion server. More...
 
- Events inherited from PushTechnology.DiffusionCore.Connection.Interfaces.IDiffusionConnectorEvents
EventHandler< EventArgs > ConnectionSequenceExhausted
 The event raised when the load balance sequence is completed. More...
 
- Events inherited from PushTechnology.DiffusionCore.Connection.ICascadable
EventHandler
< ServerDetailsEventArgs
ConnectionDetailsAcquired
 The event which is fired when a set of server details is acquired from the list. More...
 
EventHandler< EventArgs > ConnectionServiceStopped
 The event raised when the connection service is stopped. More...
 

Detailed Description

This class is responsible for the connection attempts to the Diffusion server.

Constructor & Destructor Documentation

PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.DiffusionConnectionService ( TClient  client)

Constructor.

Member Function Documentation

void PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.AddServerConnectionListener ( IServerConnectionListener  listener)

Adds a server connection listener.

Parameters
listener
void PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.Connect ( )

Attempts to establish a connection to a Diffusion server.

IPagedTopicHandler PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.CreatePagedTopicHandler ( ITopicMessage  message,
IPagedTopicListener  listener 
)

Adds a handler object for a 'paged' Topic. This would be called in response to receiving an ITopicMessage.IsPagedLoad message from a paged topic as a result of subscribing to it. Note that no other messages would be received from a paged topic until the returned handler is used to IPagedTopicHandler.Open( int, int ) the topic.

Parameters
messageThe load message received from the topic.
listenerAn object that is to receive all notifications from the topic.
Returns
The handler which may be used to send requests to the topic.
IServiceTopicHandler PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.CreateServiceTopicHandler ( IDiffusionClientConnector  client,
ITopicMessage  message,
IServiceTopicListener  listener 
)

Creates a handler object for a 'service' topic. This would be called in response to receiving an ITopicMessage.IsServiceLoad message from a service topic as a result of subscribing to it. Note that no other messages would be received from a service topic other than via the specified IServiceTopicListener.

Parameters
clientThe client connection object.
messageThe load message received from the topic.
listenerAn object that is to receive all service replies and notifications.
Returns
The handler which may be used to send service requests.
ITopicNotifyTopicHandler PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.CreateTopicNotifyTopicHandler ( IDiffusionClientConnector  client,
ITopicMessage  message,
ITopicNotifyTopicListener  listener 
)

Create a topic notify handler.

Parameters
client
message
listener
Returns
bool PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.HandleTopicMessage ( IMessageSource  source,
ITopicMessage  message 
)

Handles a message received from an IMessageSource. This will handle an incoming message from a specified source.

Parameters
sourceThe message source.
messageThe message.

Implements PushTechnology.DiffusionCore.Messaging.Topic.ITopicListener.

bool PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.IsLastConnector ( )

Returns whether the active connector is the last in the list of connectors.

Returns
void PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.RaiseCredentialsRejectedEvent ( MessageImpl  message,
IDiffusionClientConnector  connector 
)

Raise the credentials rejected message event.

Parameters
message
connector

Implements PushTechnology.DiffusionCore.Connection.Interfaces.IDiffusionClientEventMethods.

void PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.RaiseMessageAcknowledgedEvent ( TopicMessageImpl  message,
IDiffusionClientConnector  connector 
)

Raise the message acknowledged event.

Parameters
message
connector

Implements PushTechnology.DiffusionCore.Connection.Interfaces.IDiffusionClientEventMethods.

void PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.RaiseMessageNotAcknowledgedEvent ( TopicMessageImpl  message,
IDiffusionClientConnector  connector 
)

Raise the message not acknowledged event.

Parameters
message
connector

Implements PushTechnology.DiffusionCore.Connection.Interfaces.IDiffusionClientEventMethods.

void PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.RaisePingResponseReceivedEvent ( MessageImpl  message,
IDiffusionClientConnector  connector 
)

Raise the ping response received message event.

Parameters
message
connector

Implements PushTechnology.DiffusionCore.Connection.Interfaces.IDiffusionClientEventMethods.

void PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.RaiseServerConnectedEvent ( IDiffusionClientConnector  connector)

Raise the server connected event.

Parameters
connector

Implements PushTechnology.DiffusionCore.Connection.Interfaces.IDiffusionClientEventMethods.

void PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.RaiseServerConnectionAttemptFailedEvent ( ServerClosedEventArgs  args,
IDiffusionClientConnector  connector 
)

Raise the server connection failure event.

Parameters
args
connector

Implements PushTechnology.DiffusionCore.Connection.Interfaces.IDiffusionClientEventMethods.

void PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.RaiseServerDisconnectedEvent ( ServerClosedEventArgs  args,
IDiffusionClientConnector  connector 
)

Raise the server disconnected event.

Parameters
args
connector

Implements PushTechnology.DiffusionCore.Connection.Interfaces.IDiffusionClientEventMethods.

void PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.RaiseServerPingReceivedEvent ( MessageImpl  message,
IDiffusionClientConnector  connector 
)

Raise the 'server ping received' message event.

Parameters
message
connector

Implements PushTechnology.DiffusionCore.Connection.Interfaces.IDiffusionClientEventMethods.

void PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.RaiseServerRejectedCredentialsEvent ( V4Credentials  credentials,
IDiffusionClientConnector  connector 
)

Raise the server rejected credentials event.

Parameters
credentials
connector

Implements PushTechnology.DiffusionCore.Connection.Interfaces.IDiffusionClientEventMethods.

void PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.RaiseTopicMessageReceivedEvent ( TopicMessageImpl  message,
IDiffusionClientConnector  connector 
)

Raise the topic message received event.

Parameters
message
connector

Implements PushTechnology.DiffusionCore.Connection.Interfaces.IDiffusionClientEventMethods.

void PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.RaiseTopicStatusChangedEvent ( TopicStatusMessage  message,
IDiffusionClientConnector  connector 
)

Raise the topic status changed event.

Parameters
message
connector

Implements PushTechnology.DiffusionCore.Connection.Interfaces.IDiffusionClientEventMethods.

void PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.Reset ( )

Performs a 'reset' of connector indices, etc.

void PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.ServerConnected ( IDiffusionClientConnector  connector)

Notification of connection. This is called when a connection to a server is established.

Parameters
connectorThe server connector.

Implements PushTechnology.DiffusionCore.Connection.Interfaces.IServerConnectionListener.

void PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.ServerConnectionAttemptFailed ( IDiffusionClientConnector  connector,
ServerClosedEventArgs  args 
)

Notification of a failed connection attempt. The reason for the failure can be established by checking the state of the connection using IDiffusionClientConnector.State.

Parameters
connector
args

Implements PushTechnology.DiffusionCore.Connection.Interfaces.IServerConnectionListener.

void PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.ServerDisconnected ( IDiffusionClientConnector  connector,
ServerClosedEventArgs  args 
)

Notification of disconnection. The reason for the disconnection can be established by checking the state of the connection using IDiffusionClientConnector.State.

Parameters
connectorThe server connector.
argsThe arguments which can be interrogated for the state and details of a server closure.

Implements PushTechnology.DiffusionCore.Connection.Interfaces.IServerConnectionListener.

void PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.ServerRejectedCredentials ( IDiffusionClientConnector  connector,
V4Credentials  credentials 
)

Notification of rejected credentials from the server.

Parameters
connector
credentials

Implements PushTechnology.DiffusionCore.Connection.Interfaces.IServerConnectionListener.

void PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.ServerTopicStatusChanged ( IDiffusionClientConnector  connector,
string  topicName,
TopicStatus  statusType 
)

Notification that the status for a topic that was subscribed to has changed.

Parameters
connectorThe connector.
topicNameThe name of the topic on which the status has changed.
statusTypeThe topic status change type.

Implements PushTechnology.DiffusionCore.Connection.Interfaces.IServerConnectionListener.

void PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.SetAckListener ( IServerAckListener  listener)

Set the acknowledgement message listener.

Parameters
listener
void PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.SetAckTimeout ( long  timeout)

Set the acknowledgement message timeout.

Parameters
timeout
void PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.SetActiveTransport ( )

Helper method to set the active transport (if possible)

void PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.SetAutoAcknowledging ( bool  autoAcknowledge)

Determines whether acknowledgement messages are responded to automatically.

Parameters
autoAcknowledge
void PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.SetConnectionDetails ( IConnectionDetails  connectionDetails)

Sets the connection details.

Parameters
connectionDetails
void PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.SetCredentials ( V4Credentials  credentials)

Sets the credentials.

Parameters
credentials
void PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.SetMaximumPacketSize ( int  size)

Set the maximum socket buffer size (both input and output).

Parameters
size
void PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.SetPingListener ( IServerPingResponseListener  listener)

Set the ping message listener.

Parameters
listener
void PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.SubscribeToExternalEvents ( )

Method to allow external classes to subscribe to the various events.

void PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.UnsubscribeFromExternalEvents ( )

Method to allow external classes to unsubscribe from the various events.

Property Documentation

IServerAckListener PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.AckListener
getset

Get/set the acknowledgement message listener.

long PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.AckTimeout
getset

Get/set the acknowledgement message timeout.

ConcurrentBag<TopicListenerImpl> PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.ActionListeners
getset

Get/set the event listener dictionary object.

IServerDetails PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.ActiveServerDetails
get

Returns the active set of server details.

IDiffusionClientConnector PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.ActiveTransport
getset

Get/set the active transport.

IDiffusionClientTcpConnection PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.ActiveTransportBase
get

Get the active transport base.

ConnectionCapabilities PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.Capabilities
getset

Get/set the connection capabilities.

TClient PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.Client
getset

Get the client object.

IConnectionDetails PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.ConnectionDetails
getset

Get/set the connection details.

bool PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.IsAutoAcknowledging
getset

Gets/sets whether reponses to 'ack' messages are automatic.

bool PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.IsRunning
getset

Indicates whether the service is running.

int PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.MaxPacketSize
getset

Get/set the maximum socket buffer size.

List<TopicNotifyTopicHandlerImpl> PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.NotifyTopicHandlers
getset

Get/set the notify topic handlers.

List<PagedTopicHandlerImpl> PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.PagedTopicHandlers
getset

Get/set the paged topic handlers.

IServerPingResponseListener PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.PingListener
getset

Get/set the ping message listener.

IDiffusionReconnector PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.Reconnector
getset

Get/set the 'subscriber' to the connection calls.

bool PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.RestoreState
getset

Indicates whether to attempt to restore state with an accordingly-configured Diffusion server upon loss of connection and subsequent reconnection.

ReadOnlyCollection<IServerConnectionListener> PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.ServerConnectionListeners
getset

Get/set the default message listener.

ServerDetailsFactory PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.ServerDetailsList
get

Gets the server details factory object.

List<ServiceTopicHandlerImpl> PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.ServiceTopicHandlers
getset

Get/set the service topic handlers.

bool PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.StopConnectionService
getset

Flag to request that the connection service stops when it has finished its most recent connection attempt.

Dictionary<ITopicListener, List<TopicSet> > PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.TopicListeners
getset

Get/set the topic listener dictionary object.

Event Documentation

EventHandler<ServerDetailsEventArgs> PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.ConnectionDetailsAcquired

The event which is fired when a set of server details is acquired from the list.

EventHandler<EventArgs> PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.ConnectionSequenceExhausted

The event raised when the set of server details is exhausted.

EventHandler<EventArgs> PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.ConnectionServiceStopped

The event raised when the connection service is stopped.

EventHandler<MessageEventArgs<CredentialsRejectedMessage> > PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.CredentialsRejectedReceived

The event raised when credentials are rejected by the Diffusion server.

EventHandler<MessageEventArgs<TopicMessageImpl> > PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.DiffusionServerConnected

The event raised when connection has been established to the Diffusion server.

EventHandler<ServerClosedEventArgs> PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.DiffusionServerConnectionAttemptFailed

The event raised when connection to the Diffusion server fails.

EventHandler<ServerRejectedCredentialsEventArgs> PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.DiffusionServerCredentialsRejected

The event raised when credentials are rejected by the Diffusion server.

EventHandler<ServerClosedEventArgs> PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.DiffusionServerDisconnected

The event raised when connection is lost to the Diffusion server.

EventHandler<MessageEventArgs<TopicMessageImpl> > PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.MessageAcknowledged

The event raised when a message has been acknowledged by the Diffusion server.

EventHandler<MessageEventArgs<TopicMessageImpl> > PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.MessageNotAcknowledged

The event raised when a message has not been acknowledged by the Diffusion server.

EventHandler<MessageEventArgs<ServerPingMessageImpl> > PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.PingResponseReceived

The event raised when a ping message is received from the Diffusion server.

EventHandler<MessageEventArgs<ClientPingMessageImpl> > PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.ServerPingReceived

The event raised when a ping is received from the server.

EventHandler<MessageEventArgs<TopicMessageImpl> > PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.TopicMessageReceived

The event raised when a topic message is received from the Diffusion server.

EventHandler<MessageEventArgs<TopicStatusMessage> > PushTechnology.DiffusionCore.Connection.Services.DiffusionConnectionService< TClient >.TopicStatusChanged

The event raised when the status of a topic is changed.