Closes this Connection (mandatory).

C# |
public void Close()

Closing the connection will result in the the logical connection between the client and the middleware to become broken. Once a connection is closed no further operations can be performed on the connection and all open sessions will be aborted by the middleware.
Never call Close(...) during the execution of a callback method. This will result in a deadlock.
IMPORTANT NOTE:
This call is mandatory. If you do not close the connection, you will introduce a resource leak.