private void OnPetitionedIdentityResponseReceived(LegalIdentityPetitionResponseEventArgs e) { PetitionedIdentityResponseReceived?.Invoke(this, e); }
private async Task ContractsClient_PetitionedIdentityResponseReceived(object sender, LegalIdentityPetitionResponseEventArgs e) { try { this.OnPetitionedIdentityResponseReceived(e); } catch (Exception ex) { this.logService.LogException(ex); await this.uiDispatcher.DisplayAlert(AppResources.ErrorTitle, ex.Message); } }
private async void Contracts_PetitionedIdentityResponseReceived(object sender, LegalIdentityPetitionResponseEventArgs e) { if (!e.Response || e.RequestedIdentity is null) { await this.uiDispatcher.DisplayAlert(AppResources.Message, AppResources.PetitionToViewLegalIdentityWasDenied, AppResources.Ok); } else { this.uiDispatcher.BeginInvokeOnMainThread(async() => { await this.navigationService.GoToAsync(nameof(ViewIdentityPage), new ViewIdentityNavigationArgs(e.RequestedIdentity, null)); }); } }