Beispiel #1
0
        protected virtual void OnCloseConnection(IWampConnection <TMessage> connection)
        {
            ClientContainer.RemoveClient(connection);


            // Prefer the non-blocking version
            if (connection is IAsyncDisposable asyncDisposable)
            {
                asyncDisposable.DisposeAsync();
            }
            else
            {
                connection.Dispose();
            }
        }
 public void Dispose()
 {
     mConnection.Dispose();
     mContainer.RemoveClient(mConnection);
 }