private void OnBrokerChanged(object sender, BrokerStateChangedEventArgs e) {
     _shell.DispatchOnUIThread(() => UpdateWindowTitle(e.IsConnected));
 }
Example #2
0
 private void OnBrokerStateChanged(object sender, BrokerStateChangedEventArgs e) {
     if (e.IsConnected) {
         BuildIndexAsync().DoNotWait();
     }
 }
Example #3
0
 private void BrokerStateChanged(object sender, BrokerStateChangedEventArgs eventArgs) {
     IsConnected = eventArgs.IsConnected && _interactiveWorkflow.ActiveWindow != null;
     UpdateActiveConnection();
     ConnectionStateChanged?.Invoke(this, new ConnectionEventArgs(IsConnected, ActiveConnection));
 }
Example #4
0
 private void OnBrokerStateChanged(object sender, BrokerStateChangedEventArgs e) {
     if (!e.IsConnected) {
         // Event mey fire on a background thread
         VsAppShell.Current.DispatchOnUIThread(CloseBrowser);
     }
 }