Beispiel #1
0
 public void Cleanup()
 {
     MessagePump.Instance.MainLoopRun -= InstanceOnMainLoopRun;
     VivoxCoreInstance.Uninitialize();
     lock (_pendingRequests)
     {
         _pendingRequests.Clear();
     }
     _startCount = 0;
 }
Beispiel #2
0
 public void Stop()
 {
     if (_startCount <= 0)
     {
         return;
     }
     --_startCount;
     if (_startCount != 0)
     {
         return;
     }
     MessagePump.Instance.MainLoopRun -= InstanceOnMainLoopRun;
     VivoxCoreInstance.Uninitialize();
 }
Beispiel #3
0
        protected virtual void Dispose(bool disposing)
        {
            if (disposed)
            {
                return;
            }

            if (disposing)
            {
                // Free any other managed objects here.
                //
            }

            // Free any unmanaged objects here.
            VivoxCoreInstance.Uninitialize();

            disposed = true;
        }
Beispiel #4
0
 public static void Cleanup()
 {
     VxClient.Instance.Stop();
     VivoxCoreInstance.Uninitialize();
 }