public SCONClient(ITCPClient client, SCONListener sconListener)
        {
            Client = client;
            Stream = new ProtobufStream(Client);

            _listener = sconListener;

            AuthorizationStatus = AuthorizationStatus.RemoteClientEnabled;
        }
Example #2
0
 /// <summary>
 /// Dispose all background worker for the thread to dispose.
 /// </summary>
 public static void Dispose()
 {
     if (Listener != null)
     {
         Listener.Dispose();
     }
     if (RCONListener != null)
     {
         RCONListener.Dispose();
     }
     if (SCONListener != null)
     {
         SCONListener.Dispose();
     }
     NancyImpl.Stop();
     if (Logger != null)
     {
         Logger.Dispose();
     }
 }