Пример #1
0
        protected virtual async Task DoDisconnect()
        {
            if (this.channel != null && this.channel.Connected)
            {
                await channel.Close();

                idleStateMonitor?.OnDisconnected();
            }
        }
Пример #2
0
 protected virtual void OnDisconnected()
 {
     idleStateMonitor?.OnDisconnected();
 }