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

Factory class for ConnectionDetails and ServerDetails objects. More...

Static Public Member Functions

static IConnectionDetails CreateConnectionDetails ()
 Creates connection details with no server details specified. Server details would need to be set explicitly using the ConnectionDetails.ServerDetails property before the connection details could be used for connection. More...
 
static IConnectionDetails CreateConnectionDetails (List< IServerDetails > serverDetails)
 Creates connection details given a list of server details objects. More...
 
static IConnectionDetails CreateConnectionDetails (params string[] urls)
 Creates connection details for a list of URLs. This is a a convenience method which will cause a list of ServerDetails objects to be created which correspond to the specified URLs. More...
 
static IConnectionDetails CreateConnectionDetails (params IServerDetails[] serverDetails)
 Creates connection details with a list of ServerDetails. More...
 
static IServerDetails CreateServerDetails (string url="dpt://localhost:8080")
 Creates a ServerDetails object from a URL. More...
 

Detailed Description

Factory class for ConnectionDetails and ServerDetails objects.

Member Function Documentation

static IConnectionDetails PushTechnology.DiffusionCore.Connection.Connectors.Connection.ConnectionFactory.CreateConnectionDetails ( )
static

Creates connection details with no server details specified. Server details would need to be set explicitly using the ConnectionDetails.ServerDetails property before the connection details could be used for connection.

Returns
A default connection details object.
static IConnectionDetails PushTechnology.DiffusionCore.Connection.Connectors.Connection.ConnectionFactory.CreateConnectionDetails ( List< IServerDetails serverDetails)
static

Creates connection details given a list of server details objects.

Parameters
serverDetails
Returns
static IConnectionDetails PushTechnology.DiffusionCore.Connection.Connectors.Connection.ConnectionFactory.CreateConnectionDetails ( params string[]  urls)
static

Creates connection details for a list of URLs. This is a a convenience method which will cause a list of ServerDetails objects to be created which correspond to the specified URLs.

Parameters
urlsOne or more URLs from which ServerDetails objects will be created.
Returns
A connection details object.
static IConnectionDetails PushTechnology.DiffusionCore.Connection.Connectors.Connection.ConnectionFactory.CreateConnectionDetails ( params IServerDetails[]  serverDetails)
static

Creates connection details with a list of ServerDetails.

Parameters
serverDetailsOne or more server specifications.
Returns
A connection details object.
static IServerDetails PushTechnology.DiffusionCore.Connection.Connectors.Connection.ConnectionFactory.CreateServerDetails ( string  url = "dpt://localhost:8080")
static

Creates a ServerDetails object from a URL.

The URL takes the form: scheme://host:port.
Where the scheme determines the transport protocol used to send Diffusion messages, and
is chosen from the following list:
Scheme Transport Protocol
ws
WebSocket. SeeRFC 6455
wss
WebSocket over TLS.
dpt
Deprecated since 5.9. "DPT" or Diffusion Protocol. A proprietary TCP protocol.
dpts
Deprecated since 5.9. Diffusion Protocol over TLS.
http
Deprecated since 5.7.. HTTP Duplex. A proprietary TCP protocol that is sufficiently like HTTP to be acceptable to some third-party network intermediaries.
https
Deprecated since 5.7.. HTTP Duplex over TLS.

We recommend using the WebSocket protocol options (ws or wss). There is no measurable performance difference between the DPT and WebSocket protocols.

TLS is Transport Layer Security. TLS-based protocols use cryptography to provide transport-level privacy, authentication, and integrity, and protects against network-sniffing and man-in-the-middle attacks. We recommend using the TLS variants for all communication. For a typical application, only consider not using TLS for unauthenticated("anonymous") client sessions.

The HTTP Duplex protocol was deprecated in version 5.7 and will be removed in a future release of the product.

Parameters
urlThe URL.
Returns
A ServerDetails object of the correct transport type for the URL.