Пример #1
0
        protected override void OnConnectionDisconnectedGlobal(object sender, DisconnectedEventArgs e)
        {
            Synchronization.EnterWriteLock();
            this.connections.Remove(e.Connection);
            Synchronization.ExitWriteLock();

            base.OnConnectionDisconnectedGlobal(sender, e);
        }
Пример #2
0
        protected override void OnConnectionMadeGlobal(object sender, ConnectionMadeEventArgs e)
        {
            Synchronization.EnterWriteLock();
            this.connections.Add(e.Connection);
            Synchronization.ExitWriteLock();

            base.OnConnectionMadeGlobal(sender, e);
        }