public void Dispose() { Log.Write(Log.Level.Info, "Closing QueryConnection..."); if (tsClient != null) { tsClient.Dispose(); tsClient = null; } }
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; }