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)
128if (errorContext.Result != null) 130if (errorContext.Result.Handled) 134else if (errorContext.Result.Skipped) 138else if (errorContext.Result.Failure != null) 140throw new AuthenticationFailureException("An error was returned from the RemoteFailure event.", errorContext.Result.Failure); 164if (ticketContext.Result != null) 166if (ticketContext.Result.Handled) 171else if (ticketContext.Result.Skipped) 306if (context.Result != null) 308if (context.Result.Handled) 312else if (context.Result.Skipped) 317return context.Result;
Microsoft.AspNetCore.Authentication.Negotiate (5)
NegotiateHandler.cs (5)
271if (errorContext.Result != null) 273if (errorContext.Result.Handled) 277else if (errorContext.Result.Skipped) 281else if (errorContext.Result.Failure != null) 283throw new AuthenticationFailureException("An error was returned from the AuthenticationFailed event.", errorContext.Result.Failure);
Microsoft.AspNetCore.Authentication.OpenIdConnect (42)
OpenIdConnectHandler.cs (42)
143if (remoteSignOutContext.Result != null) 145if (remoteSignOutContext.Result.Handled) 150if (remoteSignOutContext.Result.Skipped) 155if (remoteSignOutContext.Result.Failure != null) 157throw new InvalidOperationException("An error was returned from the RemoteSignOut event.", remoteSignOutContext.Result.Failure); 340if (signOut.Result != null) 342if (signOut.Result.Handled) 347if (signOut.Result.Skipped) 352if (signOut.Result.Failure != null) 354throw new InvalidOperationException("An error was returned from the SignedOutCallbackRedirect event.", signOut.Result.Failure); 695if (messageReceivedContext.Result != null) 697return messageReceivedContext.Result; 793if (tokenValidatedContext.Result != null) 795return tokenValidatedContext.Result; 818if (authorizationCodeReceivedContext.Result != null) 820return authorizationCodeReceivedContext.Result; 836if (tokenResponseReceivedContext.Result != null) 838return tokenResponseReceivedContext.Result; 877if (tokenValidatedContext.Result != null) 879return tokenValidatedContext.Result; 949if (authenticationFailedContext.Result != null) 951return authenticationFailedContext.Result; 1089if (userInformationReceivedContext.Result != null) 1091return userInformationReceivedContext.Result; 1224if (context.Result != null) 1226if (context.Result.Handled) 1230else if (context.Result.Skipped) 1250if (context.Result != null) 1252if (context.Result.Handled) 1256else if (context.Result.Skipped) 1296if (context.Result != null) 1298if (context.Result.Handled) 1302else if (context.Result.Skipped) 1325if (context.Result != null) 1327if (context.Result.Handled) 1331else if (context.Result.Skipped) 1351if (context.Result != null) 1353if (context.Result.Handled) 1357else if (context.Result.Skipped) 1375if (context.Result != null) 1377if (context.Result.Handled) 1381else 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)