C# Class NATS.Client.ConnectionFactory

Creates a connection to the NATS server.
ファイルを表示 Open project: nats-io/csnats Class Usage Examples

Public Methods

Method Description
ConnectionFactory ( ) : System

Creates a connection factory to the NATS server.

CreateConnection ( ) : IConnection

Create a connection to the NATs server using default options.

CreateConnection ( Options opts ) : IConnection

CreateConnection to the NATs server using the provided options.

CreateConnection ( string url ) : IConnection

CreateConnection will attempt to connect to the NATS server. The url can contain username/password semantics. Comma seperated arrays are also supported, e.g. urlA, urlB.

CreateEncodedConnection ( ) : IEncodedConnection

Create an encoded connection to the NATs server using default options.

CreateEncodedConnection ( Options opts ) : IEncodedConnection

CreateEncodedConnection to the NATs server using the provided options.

CreateEncodedConnection ( string url ) : IEncodedConnection

CreateEncodeedConnection will attempt to connect to the NATS server. The url can contain username/password semantics.

CreateSecureConnection ( string url ) : IConnection

CreateSecureConnection will attempt to connect to the NATS server using TLS. The url can contain username/password semantics.

GetDefaultOptions ( ) : Options

Retrieves the default set ot client options.

Method Details

ConnectionFactory() public method

Creates a connection factory to the NATS server.
public ConnectionFactory ( ) : System
return System

CreateConnection() public method

Create a connection to the NATs server using default options.
public CreateConnection ( ) : IConnection
return IConnection

CreateConnection() public method

CreateConnection to the NATs server using the provided options.
public CreateConnection ( Options opts ) : IConnection
opts Options NATs client options
return IConnection

CreateConnection() public method

CreateConnection will attempt to connect to the NATS server. The url can contain username/password semantics. Comma seperated arrays are also supported, e.g. urlA, urlB.
public CreateConnection ( string url ) : IConnection
url string The url
return IConnection

CreateEncodedConnection() public method

Create an encoded connection to the NATs server using default options.
public CreateEncodedConnection ( ) : IEncodedConnection
return IEncodedConnection

CreateEncodedConnection() public method

CreateEncodedConnection to the NATs server using the provided options.
public CreateEncodedConnection ( Options opts ) : IEncodedConnection
opts Options NATs client options
return IEncodedConnection

CreateEncodedConnection() public method

CreateEncodeedConnection will attempt to connect to the NATS server. The url can contain username/password semantics.
public CreateEncodedConnection ( string url ) : IEncodedConnection
url string The url
return IEncodedConnection

CreateSecureConnection() public method

CreateSecureConnection will attempt to connect to the NATS server using TLS. The url can contain username/password semantics.
public CreateSecureConnection ( string url ) : IConnection
url string connect url
return IConnection

GetDefaultOptions() public static method

Retrieves the default set ot client options.
public static GetDefaultOptions ( ) : Options
return Options