IConnection.CloseAsync()

DESCRIPTION

Close this connection asynchronously.

DECLARATION

System.Threading.Tasks.Task CloseAsync()

ERRORS

  • T:Nabto.Edge.Client.NabtoException: Thrown with error code OPERATION_IN_PROGRESS if another close is in progreess.
  • T:Nabto.Edge.Client.NabtoException: Thrown with error code STOPPED if the client instance was stopped.
  • T:Nabto.Edge.Client.NabtoException: Thrown with error code NOT_CONNECTED if the connection is not established.

RETURNS

Task completed when the close succeeds or fails.