Пример #1
0
 public void Dispose()
 {
     if (_httpServer != null)
     {
         _httpServer.Dispose();
     }
     if (_udpServer != null)
     {
         _udpServer.Dispose();
     }
 }
Пример #2
0
 public void Dispose()
 {
     if (_mcLock != null)
     {
         _mcLock.Release();
         _mcLock.Dispose();
     }
     if (_httpServer != null)
     {
         _httpServer.Dispose();
     }
     if (_udpServer != null)
     {
         _udpServer.Dispose();
     }
 }
Пример #3
0
 /// <summary>
 ///     This will stop the internal HTTP-Server (Should be called after you got the Token)
 /// </summary>
 public void StopHttpServer()
 {
     _httpServer.Dispose();
     _httpServer    = null;
     isServerActive = false;
 }
Пример #4
0
 /// <summary>
 ///     This will stop the internal HTTP-Server (Should be called after you got the Token)
 /// </summary>
 public void StopHttpServer()
 {
     _httpServer.Dispose();
     _httpServer = null;
 }