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); 580if (messageReceivedContext.Result != null) 582return messageReceivedContext.Result; 678if (tokenValidatedContext.Result != null) 680return tokenValidatedContext.Result; 703if (authorizationCodeReceivedContext.Result != null) 705return authorizationCodeReceivedContext.Result; 721if (tokenResponseReceivedContext.Result != null) 723return tokenResponseReceivedContext.Result; 761if (tokenValidatedContext.Result != null) 763return tokenValidatedContext.Result; 833if (authenticationFailedContext.Result != null) 835return authenticationFailedContext.Result; 973if (userInformationReceivedContext.Result != null) 975return userInformationReceivedContext.Result; 1107if (context.Result != null) 1109if (context.Result.Handled) 1113else if (context.Result.Skipped) 1133if (context.Result != null) 1135if (context.Result.Handled) 1139else if (context.Result.Skipped) 1179if (context.Result != null) 1181if (context.Result.Handled) 1185else if (context.Result.Skipped) 1208if (context.Result != null) 1210if (context.Result.Handled) 1214else if (context.Result.Skipped) 1234if (context.Result != null) 1236if (context.Result.Handled) 1240else if (context.Result.Skipped) 1258if (context.Result != null) 1260if (context.Result.Handled) 1264else 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)