//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// public int LaunchDialogClose() { LoggingUtils.PrintFunction(); try { if (m_debuggerConnectionWindow != null) { m_debuggerConnectionWindow.Dispatcher.Invoke((Action)(() => { lock (m_debuggerConnectionWindow) { m_debuggerConnectionWindow.Close(); } })); } return(VSConstants.S_OK); } catch (Exception e) { LoggingUtils.HandleException(e); return(VSConstants.E_FAIL); } }
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// public async Task <int> LaunchDialogClose() { LoggingUtils.PrintFunction(); m_debuggerConnectionWindow?.Dispatcher.InvokeAsync(() => { lock (m_debuggerConnectionWindowLock) { m_debuggerConnectionWindow.Close(); } }); return(VSConstants.S_OK); }