5 writes to Result
Microsoft.AspNetCore.Authentication (5)
Events\HandleRequestContext.cs (2)
35public void HandleResponse() => Result = HandleRequestResult.Handle(); 40public void SkipHandler() => Result = HandleRequestResult.SkipHandler();
Events\RemoteAuthenticationContext.cs (3)
42public void Success() => Result = HandleRequestResult.Success(new AuthenticationTicket(Principal!, Properties, Scheme.Name)); 48public void Fail(Exception failure) => Result = HandleRequestResult.Fail(failure); 54public void Fail(string failureMessage) => Result = HandleRequestResult.Fail(failureMessage);
70 references to Result
Microsoft.AspNetCore.Authentication (12)
RemoteAuthenticationHandler.cs (12)
122if (errorContext.Result != null) 124if (errorContext.Result.Handled) 128else if (errorContext.Result.Skipped) 132else if (errorContext.Result.Failure != null) 134throw new AuthenticationFailureException("An error was returned from the RemoteFailure event.", errorContext.Result.Failure); 158if (ticketContext.Result != null) 160if (ticketContext.Result.Handled) 165else if (ticketContext.Result.Skipped) 299if (context.Result != null) 301if (context.Result.Handled) 305else if (context.Result.Skipped) 310return context.Result;
Microsoft.AspNetCore.Authentication.Negotiate (5)
NegotiateHandler.cs (5)
269if (errorContext.Result != null) 271if (errorContext.Result.Handled) 275else if (errorContext.Result.Skipped) 279else if (errorContext.Result.Failure != null) 281throw new AuthenticationFailureException("An error was returned from the AuthenticationFailed event.", errorContext.Result.Failure);
Microsoft.AspNetCore.Authentication.OpenIdConnect (42)
OpenIdConnectHandler.cs (42)
139if (remoteSignOutContext.Result != null) 141if (remoteSignOutContext.Result.Handled) 146if (remoteSignOutContext.Result.Skipped) 151if (remoteSignOutContext.Result.Failure != null) 153throw new InvalidOperationException("An error was returned from the RemoteSignOut event.", remoteSignOutContext.Result.Failure); 336if (signOut.Result != null) 338if (signOut.Result.Handled) 343if (signOut.Result.Skipped) 348if (signOut.Result.Failure != null) 350throw new InvalidOperationException("An error was returned from the SignedOutCallbackRedirect event.", signOut.Result.Failure); 691if (messageReceivedContext.Result != null) 693return messageReceivedContext.Result; 789if (tokenValidatedContext.Result != null) 791return tokenValidatedContext.Result; 814if (authorizationCodeReceivedContext.Result != null) 816return authorizationCodeReceivedContext.Result; 832if (tokenResponseReceivedContext.Result != null) 834return tokenResponseReceivedContext.Result; 872if (tokenValidatedContext.Result != null) 874return tokenValidatedContext.Result; 944if (authenticationFailedContext.Result != null) 946return authenticationFailedContext.Result; 1084if (userInformationReceivedContext.Result != null) 1086return userInformationReceivedContext.Result; 1218if (context.Result != null) 1220if (context.Result.Handled) 1224else if (context.Result.Skipped) 1244if (context.Result != null) 1246if (context.Result.Handled) 1250else if (context.Result.Skipped) 1290if (context.Result != null) 1292if (context.Result.Handled) 1296else if (context.Result.Skipped) 1319if (context.Result != null) 1321if (context.Result.Handled) 1325else if (context.Result.Skipped) 1345if (context.Result != null) 1347if (context.Result.Handled) 1351else if (context.Result.Skipped) 1369if (context.Result != null) 1371if (context.Result.Handled) 1375else if (context.Result.Skipped)
Microsoft.AspNetCore.Authentication.WsFederation (11)
WsFederationHandler.cs (11)
206if (messageReceivedContext.Result != null) 208return messageReceivedContext.Result; 238if (securityTokenReceivedContext.Result != null) 240return securityTokenReceivedContext.Result; 340if (securityTokenValidatedContext.Result != null) 342return securityTokenValidatedContext.Result; 363if (authenticationFailedContext.Result != null) 365return authenticationFailedContext.Result; 480if (remoteSignOutContext.Result != null) 482if (remoteSignOutContext.Result.Handled) 487if (remoteSignOutContext.Result.Skipped)