зеркало из https://github.com/dotnet/aspnetcore.git
Clarify InvokeHandlersAfterFailure (#36501)
This commit is contained in:
Родитель
9aff054563
Коммит
de27715451
|
@ -67,7 +67,7 @@ namespace Microsoft.AspNetCore.Authorization
|
|||
=> (IEnumerable<AuthorizationFailureReason>?)_failedReasons ?? Array.Empty<AuthorizationFailureReason>();
|
||||
|
||||
/// <summary>
|
||||
/// Flag indicating whether the current authorization processing has failed.
|
||||
/// Flag indicating whether the current authorization processing has failed due to Fail being called.
|
||||
/// </summary>
|
||||
public virtual bool HasFailed { get { return _failCalled; } }
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ namespace Microsoft.AspNetCore.Authorization
|
|||
private Dictionary<string, AuthorizationPolicy> PolicyMap { get; } = new Dictionary<string, AuthorizationPolicy>(StringComparer.OrdinalIgnoreCase);
|
||||
|
||||
/// <summary>
|
||||
/// Determines whether authentication handlers should be invoked after a failure.
|
||||
/// Determines whether authentication handlers should be invoked after <see cref="AuthorizationHandlerContext.HasFailed"/>.
|
||||
/// Defaults to true.
|
||||
/// </summary>
|
||||
public bool InvokeHandlersAfterFailure { get; set; } = true;
|
||||
|
|
Загрузка…
Ссылка в новой задаче