コード例 #1
0
 protected virtual void Dispose(Boolean disposing)
 {
     if (disposing)
     {
         _idleStatusChecker.Dispose();
     }
 }
コード例 #2
0
 /// <summary>
 ///     Disposes.
 /// </summary>
 /// <param name="disposing"></param>
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         idleStatusChecker.Dispose();
     }
     base.Dispose(disposing);
 }
コード例 #3
0
 /// <inheritdoc/>
 protected override void Dispose(Boolean disposing)
 {
     if (!_disposed)
     {
         if (disposing)
         {
             if (_listenSockets.Count > 0)
             {
                 foreach (SocketContext ctx in _listenSockets.Values)
                 {
                     ctx.Close();
                     ((IDisposable)ctx.Socket).Dispose();
                 }
             }
             _idleStatusChecker.Dispose();
         }
         _disposed = true;
     }
     base.Dispose(disposing);
 }