private void AppEventWrapper_ApplicationActivationEvent(IActivatedEventArgs args) { if (args is ProtocolActivatedEventArgs activation) { var c = _wgc.HandleIncomingRedirectUri(activation.Uri); c.ContinueWith(e => { AsynchorunsuLoginResult = e.Result; _waitForBrowserCallbackEvent.Set(); }); } }