示例#1
0
 ///<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)));
 }
示例#2
0
 ///<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));
 }
示例#3
0
 ///<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)
 {
 }
示例#4
0
 ///<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())
 {
 }
示例#5
0
 ///<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)
 {
 }
示例#6
0
 ///<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)
 {
 }