///<summary>Create a connection to the host (and optional ///port) specified, with the IProtocol from ///Protocols.FromEnvironment(). The format of the address ///string is the same as that accepted by ///AmqpTcpEndpoint.Parse().</summary> public IConnection CreateConnection(string address) { return(CreateConnection(AmqpTcpEndpoint.Parse(Protocols.FromEnvironment(), address))); }
///<summary>Create a connection to the endpoint specified, ///with the IProtocol from ///Protocols.FromEnvironment().</summary> ///<remarks> /// Please see the class overview documentation for /// information about the Uri format in use. ///</remarks> public IConnection CreateConnection(Uri uri) { return(CreateConnection(Protocols.FromEnvironment(), uri.Host, uri.Port)); }
///<summary>Construct an AmqpTcpEndpoint with the given ///Uri, using the IProtocol from ///Protocols.FromEnvironment().</summary> ///<remarks> /// Please see the class overview documentation for /// information about the Uri format in use. ///</remarks> public AmqpTcpEndpoint(Uri uri) : this(Protocols.FromEnvironment(), uri) { }
///<summary>Construct an AmqpTcpEndpoint with a hostname of ///"localhost", using the IProtocol from ///Protocols.FromEnvironment(), and the default port number of ///that IProtocol.</summary> public AmqpTcpEndpoint() : this(Protocols.FromEnvironment()) { }
///<summary>Construct an AmqpTcpEndpoint with the given ///hostname, using the IProtocol from ///Protocols.FromEnvironment(), and the default port number of ///that IProtocol.</summary> public AmqpTcpEndpoint(string hostName) : this(Protocols.FromEnvironment(), hostName) { }
///<summary>Construct an AmqpTcpEndpoint with the given ///hostname and port number, using the IProtocol from ///Protocols.FromEnvironment(). If the port number is ///-1, the default port number for the IProtocol will be ///used.</summary> public AmqpTcpEndpoint(string hostName, int portOrMinusOne) : this(Protocols.FromEnvironment(), hostName, portOrMinusOne) { }