public async Task EndNewAsync(Authentication authentication, TypeMember member) { try { if (authentication is null) { throw new ArgumentNullException(nameof(authentication)); } if (authentication.IsExpired == true) { throw new AuthenticationExpiredException(nameof(authentication)); } if (member is null) { throw new ArgumentNullException(nameof(member)); } this.ValidateExpired(); await this.Dispatcher.InvokeAsync(() => { this.CremaHost.DebugMethod(authentication, this, nameof(EndNewAsync)); }); await member.EndNewAsync(authentication); } catch (Exception e) { this.CremaHost.Error(e); throw; } }
public async Task EndNewAsync(Authentication authentication, TypeMember member) { try { this.ValidateExpired(); await this.Dispatcher.InvokeAsync(() => { this.CremaHost.DebugMethod(authentication, this, nameof(EndNewAsync)); }); await member.EndNewAsync(authentication); } catch (Exception e) { this.CremaHost.Error(e); throw; } }