3 references to new
Microsoft.AspNetCore.Authorization (3)
AuthorizationResult.cs (3)
15
private static readonly AuthorizationResult _succeededResult =
new
() { Succeeded = true };
16
private static readonly AuthorizationResult _failedResult =
new
() { Failure = AuthorizationFailure.ExplicitFail() };
42
public static AuthorizationResult Failed(AuthorizationFailure failure) => new
AuthorizationResult
{ Failure = failure };