public void Dispose()
 {
     Log.Write(Log.Level.Info, "Closing QueryConnection...");
     if (tsClient != null)
     {
         tsClient.Dispose();
         tsClient = null;
     }
 }
示例#2
0
		public QueryConnection(QueryConnectionData qcd)
		{
			clientDbNames = new Dictionary<ulong, string>();

			connectionData = qcd;
			tsClient = new TS3QueryClient(EventDispatchType.DoubleThread);
			tsClient.OnClientLeftView += ExtendedClientLeftView;
			tsClient.OnClientEnterView += ExtendedClientEnterView;
			tsClient.OnTextMessageReceived += ExtendedTextMessage;
		}
        public QueryConnection(QueryConnectionData qcd)
        {
            clientDbNames = new Dictionary <ulong, string>();

            connectionData                  = qcd;
            tsClient                        = new TS3QueryClient(EventDispatchType.DoubleThread);
            tsClient.OnClientLeftView      += ExtendedClientLeftView;
            tsClient.OnClientEnterView     += ExtendedClientEnterView;
            tsClient.OnTextMessageReceived += ExtendedTextMessage;
        }
示例#4
0
		public void Dispose()
		{
			Log.Write(Log.Level.Info, "Closing QueryConnection...");
			if (tsClient != null)
			{
				tsClient.Dispose();
				tsClient = null;
			}
		}