Dispose() public method

public Dispose ( ) : void
return void
Beispiel #1
0
 internal static void Uninstall()
 {
     if (_syncWindow != null)
     {
         Logger.Initialization.Info("SynchronizationManager - Uninstall");
         Debug.Assert(ExcelDnaUtil.IsMainThread, "SynchronizationManager must be Uninstalled from the main Excel thread.");
         _syncWindow.Dispose();
         _syncWindow = null;
     }
 }
 internal static void Uninstall()
 {
     if (!ExcelDnaUtil.IsMainThread())
     {
         throw new InvalidOperationException("SynchronizationManager must be uninstalled from the main Excel thread. Ensure that ExcelAsyncUtil.Uninitialize() is called from AutoOpen() or a macro on the main Excel thread.");
     }
     _installCount--;
     if (_installCount == 0 && _syncWindow != null)
     {
         _syncWindow.Dispose();
         _syncWindow = null;
     }
 }
 internal static void Uninstall()
 {
     Debug.Assert(ExcelDnaUtil.IsMainThread, "SynchronizationManager must be Uninstalled from the main Excel thread.");
     _syncWindow.Dispose();
     _syncWindow = null;
 }