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)
272if (errorContext.Result != null) 274if (errorContext.Result.Handled) 278else if (errorContext.Result.Skipped) 282else if (errorContext.Result.Failure != null) 284throw new AuthenticationFailureException("An error was returned from the AuthenticationFailed event.", errorContext.Result.Failure);
Microsoft.AspNetCore.Authentication.OpenIdConnect (42)
OpenIdConnectHandler.cs (42)
134if (remoteSignOutContext.Result != null) 136if (remoteSignOutContext.Result.Handled) 141if (remoteSignOutContext.Result.Skipped) 146if (remoteSignOutContext.Result.Failure != null) 148throw new InvalidOperationException("An error was returned from the RemoteSignOut event.", remoteSignOutContext.Result.Failure); 331if (signOut.Result != null) 333if (signOut.Result.Handled) 338if (signOut.Result.Skipped) 343if (signOut.Result.Failure != null) 345throw new InvalidOperationException("An error was returned from the SignedOutCallbackRedirect event.", signOut.Result.Failure); 686if (messageReceivedContext.Result != null) 688return messageReceivedContext.Result; 784if (tokenValidatedContext.Result != null) 786return tokenValidatedContext.Result; 809if (authorizationCodeReceivedContext.Result != null) 811return authorizationCodeReceivedContext.Result; 827if (tokenResponseReceivedContext.Result != null) 829return tokenResponseReceivedContext.Result; 867if (tokenValidatedContext.Result != null) 869return tokenValidatedContext.Result; 939if (authenticationFailedContext.Result != null) 941return authenticationFailedContext.Result; 1079if (userInformationReceivedContext.Result != null) 1081return userInformationReceivedContext.Result; 1213if (context.Result != null) 1215if (context.Result.Handled) 1219else if (context.Result.Skipped) 1239if (context.Result != null) 1241if (context.Result.Handled) 1245else if (context.Result.Skipped) 1285if (context.Result != null) 1287if (context.Result.Handled) 1291else if (context.Result.Skipped) 1314if (context.Result != null) 1316if (context.Result.Handled) 1320else if (context.Result.Skipped) 1340if (context.Result != null) 1342if (context.Result.Handled) 1346else if (context.Result.Skipped) 1364if (context.Result != null) 1366if (context.Result.Handled) 1370else 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)