C# 클래스 NATS.Client.ConnectionFactory

Creates a connection to the NATS server.
파일 보기 프로젝트 열기: nats-io/csnats 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

ConnectionFactory() 공개 메소드

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

CreateConnection() 공개 메소드

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

CreateConnection() 공개 메소드

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

CreateConnection() 공개 메소드

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
리턴 IConnection

CreateEncodedConnection() 공개 메소드

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

CreateEncodedConnection() 공개 메소드

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

CreateEncodedConnection() 공개 메소드

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
리턴 IEncodedConnection

CreateSecureConnection() 공개 메소드

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
리턴 IConnection

GetDefaultOptions() 공개 정적인 메소드

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