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); 690if (messageReceivedContext.Result != null) 692return messageReceivedContext.Result; 788if (tokenValidatedContext.Result != null) 790return tokenValidatedContext.Result; 813if (authorizationCodeReceivedContext.Result != null) 815return authorizationCodeReceivedContext.Result; 831if (tokenResponseReceivedContext.Result != null) 833return tokenResponseReceivedContext.Result; 871if (tokenValidatedContext.Result != null) 873return tokenValidatedContext.Result; 943if (authenticationFailedContext.Result != null) 945return authenticationFailedContext.Result; 1083if (userInformationReceivedContext.Result != null) 1085return userInformationReceivedContext.Result; 1217if (context.Result != null) 1219if (context.Result.Handled) 1223else if (context.Result.Skipped) 1243if (context.Result != null) 1245if (context.Result.Handled) 1249else if (context.Result.Skipped) 1289if (context.Result != null) 1291if (context.Result.Handled) 1295else if (context.Result.Skipped) 1318if (context.Result != null) 1320if (context.Result.Handled) 1324else if (context.Result.Skipped) 1344if (context.Result != null) 1346if (context.Result.Handled) 1350else if (context.Result.Skipped) 1368if (context.Result != null) 1370if (context.Result.Handled) 1374else 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)