예제 #1
0
 /// <summary>
 /// Disposes all the resources used by this instance.
 /// </summary>
 /// <param name="disposing"></param>
 protected override void Dispose(bool disposing)
 {
     if (!IsDisposed)
     {
         if (disposing)
         {
             if (Rcon != null)
             {
                 Rcon.Dispose();
             }
             Rcon = null;
             if (logs != null)
             {
                 logs.Dispose();
             }
             logs = null;
             if (UdpSocket != null)
             {
                 UdpSocket.Dispose();
             }
             UdpSocket = null;
         }
         base.Dispose(disposing);
         IsDisposed = true;
     }
 }
예제 #2
0
 protected override void Dispose(bool disposing)
 {
     if (!IsDisposed)
     {
         if (disposing)
         {
             if (socket != null)
             {
                 socket.Dispose();
             }
         }
         base.Dispose(disposing);
         IsDisposed = true;
     }
 }