The client type servers as a container of connections and provides a means of closing all open connection in a single operation which can be performed synchronously or provides a Task type that allows a caller to be notified once all connections have been closed.
More...
|
void | Close () |
| Blocking close method that waits for all open connections to be closed before returning to the caller.
|
|
Task< IClient > | CloseAsync () |
| Initiates an asynchronous close of all the connections created from this client container. The returned Task allows the caller to wait for the close to complete or check in periodically to see if the operation has finished.
|
|
void | Dispose () |
|
IConnection | Connect (string host, int port, ConnectionOptions options=null) |
| Creates a new connection to the designated remote host on the provided port. The connection is configured using the provided connection options. This method does not block waiting for the actual IO level connection to be established, a new IConnection instance will be return which the caller can begin using. To await full connection to the remote the caller should use the open task exposed by the IConnection to wait the outcome.
|
|
IConnection | Connect (string host, ConnectionOptions options=null) |
| Creates a new connection to the designated remote host on the default AMQP port. The connection is configured using the provided connection options. This method does not block waiting for the actual IO level connection to be established, a new IConnection instance will be return which the caller can begin using. To await full connection to the remote the caller should use the open task exposed by the IConnection to wait the outcome.
|
|
|
string | ContainerId [get] |
| Returns the fixed AMQP container Id value this connection was created with.
|
|
|
static IClient | Create (ClientOptions options=null) |
| Creates a new IClient instance using the Proton default implementation which has been configured using the provided client options.
|
|
The client type servers as a container of connections and provides a means of closing all open connection in a single operation which can be performed synchronously or provides a Task type that allows a caller to be notified once all connections have been closed.
◆ Close()
void Apache.Qpid.Proton.Client.Implementation.ClientInstance.Close |
( |
| ) |
|
|
inline |
◆ CloseAsync()
Task< IClient > Apache.Qpid.Proton.Client.Implementation.ClientInstance.CloseAsync |
( |
| ) |
|
|
inline |
Initiates an asynchronous close of all the connections created from this client container. The returned Task allows the caller to wait for the close to complete or check in periodically to see if the operation has finished.
- Returns
- A task that aggregates the wait for all connections to close.
Implements Apache.Qpid.Proton.Client.IClient.
◆ Connect() [1/2]
Creates a new connection to the designated remote host on the default AMQP port. The connection is configured using the provided connection options. This method does not block waiting for the actual IO level connection to be established, a new IConnection instance will be return which the caller can begin using. To await full connection to the remote the caller should use the open task exposed by the IConnection to wait the outcome.
- Parameters
-
host | The remote host this connection should connect to |
options | Optional connection options to use to configure the connection |
- Returns
- A new connection that connects to the given host
Implements Apache.Qpid.Proton.Client.IClient.
◆ Connect() [2/2]
Creates a new connection to the designated remote host on the provided port. The connection is configured using the provided connection options. This method does not block waiting for the actual IO level connection to be established, a new IConnection instance will be return which the caller can begin using. To await full connection to the remote the caller should use the open task exposed by the IConnection to wait the outcome.
- Parameters
-
host | The remote host this connection should connect to |
port | The port on the remote host where the connection is established |
options | Optional connection options to use to configure the connection |
- Returns
- A new connection that connects to the given host and port
Implements Apache.Qpid.Proton.Client.IClient.
◆ ContainerId
string Apache.Qpid.Proton.Client.Implementation.ClientInstance.ContainerId |
|
get |
The documentation for this class was generated from the following file:
- src/Proton.Client/Client/Implementation/ClientInstance.cs