C# Класс NATS.Client.Options

This class is used to setup all NATs client options.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
AsyncErrorEventHandler EventHandler
ClosedEventHandler EventHandler
DisconnectedEventHandler EventHandler
ReconnectedEventHandler EventHandler
TLSRemoteCertificationValidationCallback RemoteCertificateValidationCallback

Открытые методы

Метод Описание
AddCertificate ( X509Certificate2 certificate ) : void

Adds a certificate for use with a secure connection.

AddCertificate ( string fileName ) : void

Adds a certifcate for use with a secure connection.

ToString ( ) : string

Returns a string representation of the value of this Options instance.

Приватные методы

Метод Описание
Options ( ) : System
Options ( Options o ) : System
appendEventHandler ( StringBuilder sb, String name, Delegate eh ) : void
processUrlString ( string url ) : void

Описание методов

AddCertificate() публичный Метод

Adds a certificate for use with a secure connection.
public AddCertificate ( X509Certificate2 certificate ) : void
certificate System.Security.Cryptography.X509Certificates.X509Certificate2 Certificate to add.
Результат void

AddCertificate() публичный Метод

Adds a certifcate for use with a secure connection.
public AddCertificate ( string fileName ) : void
fileName string Path to the certificate file to add.
Результат void

ToString() публичный Метод

Returns a string representation of the value of this Options instance.
public ToString ( ) : string
Результат string

Описание свойств

AsyncErrorEventHandler публичное свойство

Represents the method that will handle an event raised when an error occurs out of band.
public EventHandler AsyncErrorEventHandler
Результат EventHandler

ClosedEventHandler публичное свойство

Represents the method that will handle an event raised when a connection is closed.
public EventHandler ClosedEventHandler
Результат EventHandler

DisconnectedEventHandler публичное свойство

Represents the method that will handle an event raised when a connection has been disconnected from a server.
public EventHandler DisconnectedEventHandler
Результат EventHandler

ReconnectedEventHandler публичное свойство

Represents the method that will handle an event raised when a connection has reconnected to a server.
public EventHandler ReconnectedEventHandler
Результат EventHandler

TLSRemoteCertificationValidationCallback публичное свойство

Overrides the default NATS RemoteCertificationValidationCallback.
The default callback simply checks if there were any protocol errors. Overriding this callback useful during testing, or accepting self signed certificates.
public RemoteCertificateValidationCallback TLSRemoteCertificationValidationCallback
Результат RemoteCertificateValidationCallback