/// <inheritdoc />
        public override async ValueTask DisposeAsync()
        {
            foreach (KeyValuePair <EndPoint, UdpServerConnection> kvp in _allConnections)
            {
                kvp.Value.Dispose();
            }

            await StopAsync();

            await _reliablePacketTimer.DisposeAsync();

            _connectionRateLimit.Dispose();

            await base.DisposeAsync();
        }
Ejemplo n.º 2
0
        /// <inheritdoc />
        public override async ValueTask DisposeAsync()
        {
            foreach (var kvp in _allConnections)
            {
                kvp.Value.Dispose();
            }

            await StopAsync();

            await _reliablePacketTimer.DisposeAsync();

            _connectionRateLimit.Dispose();

            await base.DisposeAsync();
        }