src/packages/EmbedIO/WebSockets/WebSocketModule.cs
/// <summary>
/// Releases unmanaged and - optionally - managed resources.
/// </summary>
/// <param name="disposing"><c>true</c> to release both managed and unmanaged resources; <c>false</c> to release only unmanaged resources.</param>
Releases unmanaged and - optionally - managed resources.
Releases unmanaged and - optionally - managed resources .
protected virtual void Dispose(bool disposing)
        {
            if (_isDisposing)
                return;
            _isDisposing = true;
            if (disposing)
            {
                _connectionWatchdog?.Dispose();
                Task.WhenAll(_contexts.Values.Select(CloseAsync)).Await(false);
                PurgeDisconnectedContexts();
            }
        }
protected virtual void Dispose ( bool disposing ) { if ( _isDisposing ) return ; _isDisposing = true ; if ( disposing ) { _connectionWatchdog ? . Dispose ( ) ; Task . WhenAll ( _contexts . Values . Select ( CloseAsync ) ) . Await ( false ) ; PurgeDisconnectedContexts ( ) ; } }
Releases unmanaged and - optionally - managed resources.
Releases unmanaged and - optionally - managed resources .
disposing
bool
None