Exemple #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;
     }
 }
Exemple #2
0
 protected override void Dispose(bool disposing)
 {
     if (!IsDisposed)
     {
         if (disposing)
         {
             if (socket != null)
             {
                 socket.Dispose();
             }
         }
         base.Dispose(disposing);
         IsDisposed = true;
     }
 }