C# Class Amqp.Address

Defines the address of an AMQP endpoint. An address has the following form: amqp[s] :// [user:[password]@] domain[:port] [/[path] Where domain can be: host | ip | name If "amqps" is specified, the connection uses TLS in the underlying transport. When port is not specified, it is set to the standard based on scheme (amqp: 5672, amqps: 5671) path is not used by the library. Note that TLS Server Name Indication (SNI) is signaled only for "amqps" addresses where the domain is host | name. SNI is not signaled when the domain is a numeric IP address.
显示文件 Open project: xamarin/mini-hacks Class Usage Examples

Public Methods

Method Description
Address ( string address ) : System

Initializes a new instance of the Address class from a string.

Address ( string host, int port, string user = null, string password = null, string path = "/", string scheme = Amqps ) : System

Initializes a new instance of the Address class from individual components.

Private Methods

Method Description
Parse ( string address ) : void
SetDefault ( ) : void

Method Details

Address() public method

Initializes a new instance of the Address class from a string.
public Address ( string address ) : System
address string The string representation of the address.
return System

Address() public method

Initializes a new instance of the Address class from individual components.
public Address ( string host, int port, string user = null, string password = null, string path = "/", string scheme = Amqps ) : System
host string The domain of the address.
port int The port number of the address.
user string User name for SASL PLAIN profile.
password string Password for SASL PLAIN profile.
path string The path of the address.
scheme string Protocol scheme, which can be either "amqp" or "amqps".
return System