예제 #1
0
 public virtual void Dispose()
 {
     if (tsBaseClient != null)
     {
         tsBaseClient.Dispose();
         tsBaseClient = null;
     }
 }
예제 #2
0
 public void Dispose()
 {
     Log.Write(Log.Level.Info, "Closing QueryConnection...");
     if (tsBaseClient != null)
     {
         tsBaseClient.Dispose();
         tsBaseClient = null;
     }
 }
예제 #3
0
        protected TeamspeakControl(ClientType connectionType)
        {
            Util.Init(out clientDbNames);
            Util.Init(out clientbuffer);

            if (connectionType == ClientType.Full)
            {
                tsBaseClient = new Ts3FullClient(EventDispatchType.DoubleThread);
            }
            else if (connectionType == ClientType.Query)
            {
                tsBaseClient = new Ts3QueryClient(EventDispatchType.DoubleThread);
            }

            tsBaseClient.OnClientLeftView      += ExtendedClientLeftView;
            tsBaseClient.OnClientEnterView     += ExtendedClientEnterView;
            tsBaseClient.OnTextMessageReceived += ExtendedTextMessage;
        }
예제 #4
0
        protected TeamspeakControl(ClientType connectionType)
        {
            clientDbNames = new Dictionary <ulong, string>();

            if (connectionType == ClientType.Full)
            {
                tsBaseClient = new Ts3FullClient(EventDispatchType.ExtraDispatchThread);
            }
            else if (connectionType == ClientType.Query)
            {
                tsBaseClient = new Ts3QueryClient(EventDispatchType.ExtraDispatchThread);
            }

            tsBaseClient.OnClientLeftView      += ExtendedClientLeftView;
            tsBaseClient.OnClientEnterView     += ExtendedClientEnterView;
            tsBaseClient.OnTextMessageReceived += ExtendedTextMessage;
            tsBaseClient.OnConnected           += OnConnected;
            tsBaseClient.OnDisconnected        += OnDisconnected;
        }