3 interfaces inheriting from IActionResult
Microsoft.AspNetCore.Mvc.Core (3)
Infrastructure\IAntiforgeryValidationFailedResult.cs (1)
13public interface IAntiforgeryValidationFailedResult : IActionResult
Infrastructure\IStatusCodeActionResult.cs (1)
12public interface IStatusCodeActionResult : IActionResult
ViewFeatures\IKeepTempDataResult.cs (1)
9public interface IKeepTempDataResult : IActionResult
1 implementation of IActionResult
Microsoft.AspNetCore.Mvc.Core (1)
ActionResult.cs (1)
9public abstract class ActionResult : IActionResult
338 references to IActionResult
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (18)
Logging\AttributeRoutingController.cs (5)
17public IActionResult GetWithoutParams() => Ok(); 20public IActionResult GetWithConstraint([PrivateData] string param) => Ok(param); 23public IActionResult GetWithNullableConstraint([PrivateData] int? param) => Ok(param); 26public IActionResult GetWithDefaultValue([NoDataClassification] string param) => Ok(param); 29public IActionResult GetWithUnclassifiedParam(string param) => Ok(param);
Logging\ConventionalRoutingController.cs (3)
15public IActionResult Index() => Ok(); 17public IActionResult GetEntity([PrivateData] int param) => Ok(param); 19public IActionResult GetData(int param) => Ok(param);
Logging\MixedRoutingController.cs (5)
14public IActionResult ConventionalRouting() => Ok(); 17public IActionResult AttributeRoutingWithConstraint([PrivateData] int param) => Ok(param); 20public IActionResult AttributeRoutingWithNullableConstraint([PrivateData] int? param) => Ok(param); 23public IActionResult AttributeRoutingWithDefaultValue([NoDataClassification] string param) => Ok(param); 26public IActionResult AttributeRoutingWithUnclassifiedParam(string param) => Ok(param);
Logging\TestController.cs (5)
19public async Task<IActionResult> GetTest1Async([PrivateData] string userId) 28public async Task<IActionResult> GetTest2Async([PrivateData] string userId, [PrivateData] string teamId) 37public async Task<IActionResult> GetTest3Async([PrivateData] string userId, [PrivateData] string teamId, string chatId) 45public async Task<IActionResult> GetTest4Async() 54public async Task<IActionResult> GetTest5Async(string userId, string teamId, string chatId)
Microsoft.AspNetCore.Identity.UI (186)
Areas\Identity\Pages\V4\Account\ConfirmEmail.cshtml.cs (2)
31public virtual Task<IActionResult> OnGetAsync(string userId, string code) => throw new NotImplementedException(); 43public override async Task<IActionResult> OnGetAsync(string userId, string code)
Areas\Identity\Pages\V4\Account\ConfirmEmailChange.cshtml.cs (2)
31public virtual Task<IActionResult> OnGetAsync(string userId, string email, string code) => throw new NotImplementedException(); 45public override async Task<IActionResult> OnGetAsync(string userId, string email, string code)
Areas\Identity\Pages\V4\Account\ExternalLogin.cshtml.cs (8)
70public virtual IActionResult OnGet() => throw new NotImplementedException(); 76public virtual IActionResult OnPost(string provider, [StringSyntax(StringSyntaxAttribute.Uri)] string? returnUrl = null) => throw new NotImplementedException(); 82public virtual Task<IActionResult> OnGetCallbackAsync([StringSyntax(StringSyntaxAttribute.Uri)] string? returnUrl = null, string? remoteError = null) => throw new NotImplementedException(); 88public virtual Task<IActionResult> OnPostConfirmationAsync([StringSyntax(StringSyntaxAttribute.Uri)] string? returnUrl = null) => throw new NotImplementedException(); 115public override IActionResult OnGet() => RedirectToPage("./Login"); 117public override IActionResult OnPost(string provider, string? returnUrl = null) 125public override async Task<IActionResult> OnGetCallbackAsync(string? returnUrl = null, string? remoteError = null) 170public override async Task<IActionResult> OnPostConfirmationAsync(string? returnUrl = null)
Areas\Identity\Pages\V4\Account\ForgotPassword.cshtml.cs (2)
48public virtual Task<IActionResult> OnPostAsync() => throw new NotImplementedException(); 62public override async Task<IActionResult> OnPostAsync()
Areas\Identity\Pages\V4\Account\Login.cshtml.cs (2)
89public virtual Task<IActionResult> OnPostAsync([StringSyntax(StringSyntaxAttribute.Uri)] string? returnUrl = null) => throw new NotImplementedException(); 120public override async Task<IActionResult> OnPostAsync(string? returnUrl = null)
Areas\Identity\Pages\V4\Account\LoginWith2fa.cshtml.cs (4)
68public virtual Task<IActionResult> OnGetAsync(bool rememberMe, [StringSyntax(StringSyntaxAttribute.Uri)] string? returnUrl = null) => throw new NotImplementedException(); 74public virtual Task<IActionResult> OnPostAsync(bool rememberMe, [StringSyntax(StringSyntaxAttribute.Uri)] string? returnUrl = null) => throw new NotImplementedException(); 93public override async Task<IActionResult> OnGetAsync(bool rememberMe, string? returnUrl = null) 109public override async Task<IActionResult> OnPostAsync(bool rememberMe, string? returnUrl = null)
Areas\Identity\Pages\V4\Account\LoginWithRecoveryCode.cshtml.cs (4)
55public virtual Task<IActionResult> OnGetAsync([StringSyntax(StringSyntaxAttribute.Uri)] string? returnUrl = null) => throw new NotImplementedException(); 61public virtual Task<IActionResult> OnPostAsync([StringSyntax(StringSyntaxAttribute.Uri)] string? returnUrl = null) => throw new NotImplementedException(); 80public override async Task<IActionResult> OnGetAsync(string? returnUrl = null) 94public override async Task<IActionResult> OnPostAsync(string? returnUrl = null)
Areas\Identity\Pages\V4\Account\Logout.cshtml.cs (2)
31public virtual Task<IActionResult> OnPost(string? returnUrl = null) => throw new NotImplementedException(); 45public override async Task<IActionResult> OnPost(string? returnUrl = null)
Areas\Identity\Pages\V4\Account\Manage\ChangePassword.cshtml.cs (4)
71public virtual Task<IActionResult> OnGetAsync() => throw new NotImplementedException(); 77public virtual Task<IActionResult> OnPostAsync() => throw new NotImplementedException(); 96public override async Task<IActionResult> OnGetAsync() 113public override async Task<IActionResult> OnPostAsync()
Areas\Identity\Pages\V4\Account\Manage\DeletePersonalData.cshtml.cs (4)
50public virtual Task<IActionResult> OnGet() => throw new NotImplementedException(); 56public virtual Task<IActionResult> OnPostAsync() => throw new NotImplementedException(); 75public override async Task<IActionResult> OnGet() 87public override async Task<IActionResult> OnPostAsync()
Areas\Identity\Pages\V4\Account\Manage\Disable2fa.cshtml.cs (4)
28public virtual Task<IActionResult> OnGet() => throw new NotImplementedException(); 34public virtual Task<IActionResult> OnPostAsync() => throw new NotImplementedException(); 50public override async Task<IActionResult> OnGet() 66public override async Task<IActionResult> OnPostAsync()
Areas\Identity\Pages\V4\Account\Manage\DownloadPersonalData.cshtml.cs (4)
23public virtual IActionResult OnGet() => throw new NotImplementedException(); 29public virtual Task<IActionResult> OnPostAsync() => throw new NotImplementedException(); 45public override IActionResult OnGet() 50public override async Task<IActionResult> OnPostAsync()
Areas\Identity\Pages\V4\Account\Manage\Email.cshtml.cs (6)
66public virtual Task<IActionResult> OnGetAsync() => throw new NotImplementedException(); 72public virtual Task<IActionResult> OnPostChangeEmailAsync() => throw new NotImplementedException(); 78public virtual Task<IActionResult> OnPostSendVerificationEmailAsync() => throw new NotImplementedException(); 110public override async Task<IActionResult> OnGetAsync() 122public override async Task<IActionResult> OnPostChangeEmailAsync() 157public override async Task<IActionResult> OnPostSendVerificationEmailAsync()
Areas\Identity\Pages\V4\Account\Manage\EnableAuthenticator.cshtml.cs (4)
76public virtual Task<IActionResult> OnGetAsync() => throw new NotImplementedException(); 82public virtual Task<IActionResult> OnPostAsync() => throw new NotImplementedException(); 103public override async Task<IActionResult> OnGetAsync() 116public override async Task<IActionResult> OnPostAsync()
Areas\Identity\Pages\V4\Account\Manage\ExternalLogins.cshtml.cs (8)
47public virtual Task<IActionResult> OnGetAsync() => throw new NotImplementedException(); 53public virtual Task<IActionResult> OnPostRemoveLoginAsync(string loginProvider, string providerKey) => throw new NotImplementedException(); 59public virtual Task<IActionResult> OnPostLinkLoginAsync(string provider) => throw new NotImplementedException(); 65public virtual Task<IActionResult> OnGetLinkLoginCallbackAsync() => throw new NotImplementedException(); 84public override async Task<IActionResult> OnGetAsync() 107public override async Task<IActionResult> OnPostRemoveLoginAsync(string loginProvider, string providerKey) 127public override async Task<IActionResult> OnPostLinkLoginAsync(string provider) 138public override async Task<IActionResult> OnGetLinkLoginCallbackAsync()
Areas\Identity\Pages\V4\Account\Manage\GenerateRecoveryCodes.cshtml.cs (4)
36public virtual Task<IActionResult> OnGetAsync() => throw new NotImplementedException(); 42public virtual Task<IActionResult> OnPostAsync() => throw new NotImplementedException(); 58public override async Task<IActionResult> OnGetAsync() 75public override async Task<IActionResult> OnPostAsync()
Areas\Identity\Pages\V4\Account\Manage\Index.cshtml.cs (4)
56public virtual Task<IActionResult> OnGetAsync() => throw new NotImplementedException(); 62public virtual Task<IActionResult> OnPostAsync() => throw new NotImplementedException(); 91public override async Task<IActionResult> OnGetAsync() 103public override async Task<IActionResult> OnPostAsync()
Areas\Identity\Pages\V4\Account\Manage\PersonalData.cshtml.cs (2)
21public virtual Task<IActionResult> OnGet() => throw new NotImplementedException(); 37public override async Task<IActionResult> OnGet()
Areas\Identity\Pages\V4\Account\Manage\ResetAuthenticator.cshtml.cs (4)
28public virtual Task<IActionResult> OnGet() => throw new NotImplementedException(); 34public virtual Task<IActionResult> OnPostAsync() => throw new NotImplementedException(); 53public override async Task<IActionResult> OnGet() 64public override async Task<IActionResult> OnPostAsync()
Areas\Identity\Pages\V4\Account\Manage\SetPassword.cshtml.cs (4)
61public virtual Task<IActionResult> OnGetAsync() => throw new NotImplementedException(); 67public virtual Task<IActionResult> OnPostAsync() => throw new NotImplementedException(); 83public override async Task<IActionResult> OnGetAsync() 101public override async Task<IActionResult> OnPostAsync()
Areas\Identity\Pages\V4\Account\Manage\ShowRecoveryCodes.cshtml.cs (1)
33public IActionResult OnGet()
Areas\Identity\Pages\V4\Account\Manage\TwoFactorAuthentication.cshtml.cs (4)
53public virtual Task<IActionResult> OnGetAsync() => throw new NotImplementedException(); 59public virtual Task<IActionResult> OnPostAsync() => throw new NotImplementedException(); 76public override async Task<IActionResult> OnGetAsync() 92public override async Task<IActionResult> OnPostAsync()
Areas\Identity\Pages\V4\Account\Register.cshtml.cs (2)
90public virtual Task<IActionResult> OnPostAsync([StringSyntax(StringSyntaxAttribute.Uri)] string? returnUrl = null) => throw new NotImplementedException(); 123public override async Task<IActionResult> OnPostAsync(string? returnUrl = null)
Areas\Identity\Pages\V4\Account\RegisterConfirmation.cshtml.cs (2)
42public virtual Task<IActionResult> OnGetAsync(string email, string? returnUrl = null) => throw new NotImplementedException(); 56public override async Task<IActionResult> OnGetAsync(string email, string? returnUrl = null)
Areas\Identity\Pages\V4\Account\ResendEmailConfirmation.cshtml.cs (2)
54public virtual Task<IActionResult> OnPostAsync() => throw new NotImplementedException(); 72public override async Task<IActionResult> OnPostAsync()
Areas\Identity\Pages\V4\Account\ResetPassword.cshtml.cs (4)
72public virtual IActionResult OnGet(string? code = null) => throw new NotImplementedException(); 78public virtual Task<IActionResult> OnPostAsync() => throw new NotImplementedException(); 90public override IActionResult OnGet(string? code = null) 106public override async Task<IActionResult> OnPostAsync()
Areas\Identity\Pages\V5\Account\ConfirmEmail.cshtml.cs (2)
31public virtual Task<IActionResult> OnGetAsync(string userId, string code) => throw new NotImplementedException(); 43public override async Task<IActionResult> OnGetAsync(string userId, string code)
Areas\Identity\Pages\V5\Account\ConfirmEmailChange.cshtml.cs (2)
31public virtual Task<IActionResult> OnGetAsync(string userId, string email, string code) => throw new NotImplementedException(); 45public override async Task<IActionResult> OnGetAsync(string userId, string email, string code)
Areas\Identity\Pages\V5\Account\ExternalLogin.cshtml.cs (8)
70public virtual IActionResult OnGet() => throw new NotImplementedException(); 76public virtual IActionResult OnPost(string provider, [StringSyntax(StringSyntaxAttribute.Uri)] string? returnUrl = null) => throw new NotImplementedException(); 82public virtual Task<IActionResult> OnGetCallbackAsync([StringSyntax(StringSyntaxAttribute.Uri)] string? returnUrl = null, string? remoteError = null) => throw new NotImplementedException(); 88public virtual Task<IActionResult> OnPostConfirmationAsync([StringSyntax(StringSyntaxAttribute.Uri)] string? returnUrl = null) => throw new NotImplementedException(); 115public override IActionResult OnGet() => RedirectToPage("./Login"); 117public override IActionResult OnPost(string provider, string? returnUrl = null) 125public override async Task<IActionResult> OnGetCallbackAsync(string? returnUrl = null, string? remoteError = null) 170public override async Task<IActionResult> OnPostConfirmationAsync(string? returnUrl = null)
Areas\Identity\Pages\V5\Account\ForgotPassword.cshtml.cs (2)
48public virtual Task<IActionResult> OnPostAsync() => throw new NotImplementedException(); 62public override async Task<IActionResult> OnPostAsync()
Areas\Identity\Pages\V5\Account\Login.cshtml.cs (2)
89public virtual Task<IActionResult> OnPostAsync([StringSyntax(StringSyntaxAttribute.Uri)] string? returnUrl = null) => throw new NotImplementedException(); 120public override async Task<IActionResult> OnPostAsync(string? returnUrl = null)
Areas\Identity\Pages\V5\Account\LoginWith2fa.cshtml.cs (4)
68public virtual Task<IActionResult> OnGetAsync(bool rememberMe, [StringSyntax(StringSyntaxAttribute.Uri)] string? returnUrl = null) => throw new NotImplementedException(); 74public virtual Task<IActionResult> OnPostAsync(bool rememberMe, [StringSyntax(StringSyntaxAttribute.Uri)] string? returnUrl = null) => throw new NotImplementedException(); 93public override async Task<IActionResult> OnGetAsync(bool rememberMe, string? returnUrl = null) 109public override async Task<IActionResult> OnPostAsync(bool rememberMe, string? returnUrl = null)
Areas\Identity\Pages\V5\Account\LoginWithRecoveryCode.cshtml.cs (4)
55public virtual Task<IActionResult> OnGetAsync([StringSyntax(StringSyntaxAttribute.Uri)] string? returnUrl = null) => throw new NotImplementedException(); 61public virtual Task<IActionResult> OnPostAsync([StringSyntax(StringSyntaxAttribute.Uri)] string? returnUrl = null) => throw new NotImplementedException(); 80public override async Task<IActionResult> OnGetAsync(string? returnUrl = null) 94public override async Task<IActionResult> OnPostAsync(string? returnUrl = null)
Areas\Identity\Pages\V5\Account\Logout.cshtml.cs (2)
31public virtual Task<IActionResult> OnPost(string? returnUrl = null) => throw new NotImplementedException(); 45public override async Task<IActionResult> OnPost(string? returnUrl = null)
Areas\Identity\Pages\V5\Account\Manage\ChangePassword.cshtml.cs (4)
71public virtual Task<IActionResult> OnGetAsync() => throw new NotImplementedException(); 77public virtual Task<IActionResult> OnPostAsync() => throw new NotImplementedException(); 96public override async Task<IActionResult> OnGetAsync() 113public override async Task<IActionResult> OnPostAsync()
Areas\Identity\Pages\V5\Account\Manage\DeletePersonalData.cshtml.cs (4)
50public virtual Task<IActionResult> OnGet() => throw new NotImplementedException(); 56public virtual Task<IActionResult> OnPostAsync() => throw new NotImplementedException(); 75public override async Task<IActionResult> OnGet() 87public override async Task<IActionResult> OnPostAsync()
Areas\Identity\Pages\V5\Account\Manage\Disable2fa.cshtml.cs (4)
28public virtual Task<IActionResult> OnGet() => throw new NotImplementedException(); 34public virtual Task<IActionResult> OnPostAsync() => throw new NotImplementedException(); 50public override async Task<IActionResult> OnGet() 66public override async Task<IActionResult> OnPostAsync()
Areas\Identity\Pages\V5\Account\Manage\DownloadPersonalData.cshtml.cs (4)
23public virtual IActionResult OnGet() => throw new NotImplementedException(); 29public virtual Task<IActionResult> OnPostAsync() => throw new NotImplementedException(); 45public override IActionResult OnGet() 50public override async Task<IActionResult> OnPostAsync()
Areas\Identity\Pages\V5\Account\Manage\Email.cshtml.cs (6)
66public virtual Task<IActionResult> OnGetAsync() => throw new NotImplementedException(); 72public virtual Task<IActionResult> OnPostChangeEmailAsync() => throw new NotImplementedException(); 78public virtual Task<IActionResult> OnPostSendVerificationEmailAsync() => throw new NotImplementedException(); 110public override async Task<IActionResult> OnGetAsync() 122public override async Task<IActionResult> OnPostChangeEmailAsync() 157public override async Task<IActionResult> OnPostSendVerificationEmailAsync()
Areas\Identity\Pages\V5\Account\Manage\EnableAuthenticator.cshtml.cs (4)
76public virtual Task<IActionResult> OnGetAsync() => throw new NotImplementedException(); 82public virtual Task<IActionResult> OnPostAsync() => throw new NotImplementedException(); 103public override async Task<IActionResult> OnGetAsync() 116public override async Task<IActionResult> OnPostAsync()
Areas\Identity\Pages\V5\Account\Manage\ExternalLogins.cshtml.cs (8)
47public virtual Task<IActionResult> OnGetAsync() => throw new NotImplementedException(); 53public virtual Task<IActionResult> OnPostRemoveLoginAsync(string loginProvider, string providerKey) => throw new NotImplementedException(); 59public virtual Task<IActionResult> OnPostLinkLoginAsync(string provider) => throw new NotImplementedException(); 65public virtual Task<IActionResult> OnGetLinkLoginCallbackAsync() => throw new NotImplementedException(); 84public override async Task<IActionResult> OnGetAsync() 107public override async Task<IActionResult> OnPostRemoveLoginAsync(string loginProvider, string providerKey) 127public override async Task<IActionResult> OnPostLinkLoginAsync(string provider) 138public override async Task<IActionResult> OnGetLinkLoginCallbackAsync()
Areas\Identity\Pages\V5\Account\Manage\GenerateRecoveryCodes.cshtml.cs (4)
36public virtual Task<IActionResult> OnGetAsync() => throw new NotImplementedException(); 42public virtual Task<IActionResult> OnPostAsync() => throw new NotImplementedException(); 58public override async Task<IActionResult> OnGetAsync() 75public override async Task<IActionResult> OnPostAsync()
Areas\Identity\Pages\V5\Account\Manage\Index.cshtml.cs (4)
56public virtual Task<IActionResult> OnGetAsync() => throw new NotImplementedException(); 62public virtual Task<IActionResult> OnPostAsync() => throw new NotImplementedException(); 91public override async Task<IActionResult> OnGetAsync() 103public override async Task<IActionResult> OnPostAsync()
Areas\Identity\Pages\V5\Account\Manage\PersonalData.cshtml.cs (2)
21public virtual Task<IActionResult> OnGet() => throw new NotImplementedException(); 37public override async Task<IActionResult> OnGet()
Areas\Identity\Pages\V5\Account\Manage\ResetAuthenticator.cshtml.cs (4)
28public virtual Task<IActionResult> OnGet() => throw new NotImplementedException(); 34public virtual Task<IActionResult> OnPostAsync() => throw new NotImplementedException(); 53public override async Task<IActionResult> OnGet() 64public override async Task<IActionResult> OnPostAsync()
Areas\Identity\Pages\V5\Account\Manage\SetPassword.cshtml.cs (4)
61public virtual Task<IActionResult> OnGetAsync() => throw new NotImplementedException(); 67public virtual Task<IActionResult> OnPostAsync() => throw new NotImplementedException(); 83public override async Task<IActionResult> OnGetAsync() 101public override async Task<IActionResult> OnPostAsync()
Areas\Identity\Pages\V5\Account\Manage\ShowRecoveryCodes.cshtml.cs (1)
33public IActionResult OnGet()
Areas\Identity\Pages\V5\Account\Manage\TwoFactorAuthentication.cshtml.cs (4)
53public virtual Task<IActionResult> OnGetAsync() => throw new NotImplementedException(); 59public virtual Task<IActionResult> OnPostAsync() => throw new NotImplementedException(); 76public override async Task<IActionResult> OnGetAsync() 92public override async Task<IActionResult> OnPostAsync()
Areas\Identity\Pages\V5\Account\Register.cshtml.cs (2)
90public virtual Task<IActionResult> OnPostAsync([StringSyntax(StringSyntaxAttribute.Uri)] string? returnUrl = null) => throw new NotImplementedException(); 123public override async Task<IActionResult> OnPostAsync(string? returnUrl = null)
Areas\Identity\Pages\V5\Account\RegisterConfirmation.cshtml.cs (2)
42public virtual Task<IActionResult> OnGetAsync(string email, string? returnUrl = null) => throw new NotImplementedException(); 56public override async Task<IActionResult> OnGetAsync(string email, string? returnUrl = null)
Areas\Identity\Pages\V5\Account\ResendEmailConfirmation.cshtml.cs (2)
54public virtual Task<IActionResult> OnPostAsync() => throw new NotImplementedException(); 72public override async Task<IActionResult> OnPostAsync()
Areas\Identity\Pages\V5\Account\ResetPassword.cshtml.cs (4)
72public virtual IActionResult OnGet(string? code = null) => throw new NotImplementedException(); 78public virtual Task<IActionResult> OnPostAsync() => throw new NotImplementedException(); 90public override IActionResult OnGet(string? code = null) 106public override async Task<IActionResult> OnPostAsync()
Microsoft.AspNetCore.Mvc.Abstractions (17)
Filters\ActionExecutedContext.cs (2)
90/// Gets or sets the <see cref="IActionResult"/>. 92public virtual IActionResult? Result { get; set; }
Filters\ActionExecutingContext.cs (2)
37/// Gets or sets the <see cref="IActionResult"/> to execute. Setting <see cref="Result"/> to a non-<c>null</c> 40public virtual IActionResult? Result { get; set; }
Filters\AuthorizationFilterContext.cs (1)
28public virtual IActionResult? Result { get; set; }
Filters\ExceptionContext.cs (2)
75/// Gets or sets the <see cref="IActionResult"/>. 77public virtual IActionResult? Result { get; set; }
Filters\ResourceExecutedContext.cs (1)
116public virtual IActionResult? Result { get; set; }
Filters\ResourceExecutingContext.cs (1)
38public virtual IActionResult? Result { get; set; }
Filters\ResultExecutedContext.cs (4)
22/// The <see cref="IActionResult"/> copied from <see cref="ResultExecutingContext.Result"/>. 28IActionResult result, 98/// Gets the <see cref="IActionResult"/> copied from <see cref="ResultExecutingContext.Result"/>. 100public virtual IActionResult Result { get; }
Filters\ResultExecutingContext.cs (4)
17/// <param name="result">The <see cref="IActionResult"/> of the action and action filters.</param> 22IActionResult result, 36/// Gets or sets the <see cref="IActionResult"/> to execute. Setting <see cref="Result"/> to a non-<c>null</c> 39public virtual IActionResult Result { get; set; }
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
ApiResponseTypeProvider.cs (1)
461if (typeof(IActionResult).IsAssignableFrom(unwrappedType) ||
Microsoft.AspNetCore.Mvc.Core (90)
ActionResult.cs (1)
7/// A default implementation of <see cref="IActionResult"/>.
ActionResultOfT.cs (3)
24if (typeof(IActionResult).IsAssignableFrom(typeof(TValue)) || 40if (typeof(IActionResult).IsAssignableFrom(typeof(TValue)) || 78IActionResult IConvertToActionResult.Convert()
ApiBehaviorOptions.cs (3)
18private Func<ActionContext, IActionResult> _invalidModelStateResponseFactory = default!; 22/// <see cref="ModelStateDictionary"/> into an <see cref="IActionResult"/> 24public Func<ActionContext, IActionResult> InvalidModelStateResponseFactory
DependencyInjection\ApiBehaviorOptionsSetup.cs (1)
30internal static IActionResult ProblemDetailsInvalidModelStateResponse(ProblemDetailsFactory problemDetailsFactory, ActionContext context)
Diagnostics\MvcDiagnostics.cs (9)
996/// <param name="result">The <see cref="IActionResult"/>.</param> 997public AfterControllerActionMethodEventData(ActionContext actionContext, IReadOnlyDictionary<string, object> arguments, object controller, IActionResult result) 1023public IActionResult Result { get; } 1359/// <param name="result">The <see cref="IActionResult"/>.</param> 1360public BeforeActionResultEventData(ActionContext actionContext, IActionResult result) 1374public IActionResult Result { get; } 1402/// <param name="result">The <see cref="IActionResult"/>.</param> 1403public AfterActionResultEventData(ActionContext actionContext, IActionResult result) 1417public IActionResult Result { get; }
Infrastructure\ActionMethodExecutor.cs (33)
32public abstract ValueTask<IActionResult> Execute( 68public override async ValueTask<IActionResult> Execute( 96public override ValueTask<IActionResult> Execute( 125public override ValueTask<IActionResult> Execute( 132var actionResult = (IActionResult)executor.Execute(controller, arguments)!; 144var actionResult = (IActionResult)executor.Execute(controller, arguments)!; 151=> !executor.IsMethodAsync && typeof(IActionResult).IsAssignableFrom(executor.MethodReturnType); 158public override ValueTask<IActionResult> Execute( 167var actionResult = ConvertToActionResult(mapper, returnValue, executor.MethodReturnType); 180var actionResult = ConvertToActionResult(mapper, returnValue, executor.MethodReturnType); 191public override async ValueTask<IActionResult> Execute( 219public override async ValueTask<IActionResult> Execute( 250public override async ValueTask<IActionResult> Execute( 260var actionResult = await (Task<IActionResult>)returnValue!; 275var actionResult = await (Task<IActionResult>)returnValue!; 282=> typeof(Task<IActionResult>).IsAssignableFrom(executor.MethodReturnType); 289public override async ValueTask<IActionResult> Execute( 298var actionResult = (IActionResult)await executor.ExecuteAsync(controller, arguments); 311var actionResult = (IActionResult)await executor.ExecuteAsync(controller, arguments); 319return executor.IsMethodAsync && typeof(IActionResult).IsAssignableFrom(executor.AsyncResultType); 327public override async ValueTask<IActionResult> Execute( 336var actionResult = ConvertToActionResult(mapper, returnValue, executor.AsyncResultType!); 348var actionResult = ConvertToActionResult(mapper, returnValue, executor.AsyncResultType!); 355private static void EnsureActionResultNotNull(ObjectMethodExecutor executor, IActionResult actionResult) 364private static IActionResult ConvertToActionResult(IActionResultTypeMapper mapper, object? returnValue, Type declaredType) 366var result = (returnValue as IActionResult) ?? mapper.Convert(returnValue, declaredType);
Infrastructure\ActionResultTypeMapper.cs (1)
25public IActionResult Convert(object? value, Type returnType)
Infrastructure\ClientErrorResultFilter.cs (1)
48var result = _clientErrorFactory.GetClientError(context, clientError);
Infrastructure\ControllerActionInvoker.cs (3)
404static async Task Awaited(ControllerActionInvoker invoker, ValueTask<IActionResult> actionResultValueTask) 421IActionResult? result = null; 647public static void ActionMethodExecuted(ILogger logger, ControllerContext context, IActionResult result, TimeSpan timeSpan)
Infrastructure\IActionResultExecutor.cs (4)
11/// Defines an interface for a service which can execute a particular kind of <see cref="IActionResult"/> by 14/// <typeparam name="TResult">The type of <see cref="IActionResult"/>.</typeparam> 17/// <see cref="IActionResult.ExecuteResultAsync(ActionContext)"/> method of the corresponding action result type. 20public interface IActionResultExecutor<in TResult> where TResult : notnull, IActionResult
Infrastructure\IActionResultTypeMapper.cs (7)
9/// Provides a mapping from the return value of an action to an <see cref="IActionResult"/> 14/// <see cref="ActionResult{TValue}"/> to an <see cref="IActionResult"/> during request 22/// method will not be called for actions that return <c>void</c> or an <see cref="IActionResult"/> 34/// Converts the result of an action to an <see cref="IActionResult"/> for response processing. 36/// <see cref="IActionResult"/> value. 40/// <returns>An <see cref="IActionResult"/> for response processing.</returns> 45IActionResult Convert(object? value, Type returnType);
Infrastructure\IAntiforgeryValidationFailedResult.cs (1)
9/// Represents an <see cref="IActionResult"/> that is used when the
Infrastructure\IClientErrorFactory.cs (2)
19/// <returns>The <see cref="IActionResult"/> that would be returned to the client.</returns> 20IActionResult? GetClientError(ActionContext actionContext, IClientErrorActionResult clientError);
Infrastructure\IConvertToActionResult.cs (4)
9/// Defines the contract to convert a type to an <see cref="IActionResult"/> during action invocation. 14/// Converts the current instance to an instance of <see cref="IActionResult"/>. 16/// <returns>The converted <see cref="IActionResult"/>.</returns> 17IActionResult Convert();
Infrastructure\IStatusCodeActionResult.cs (1)
9/// Represents an <see cref="IActionResult"/> that when executed will
Infrastructure\ProblemDetailsClientErrorFactory.cs (1)
15public IActionResult GetClientError(ActionContext actionContext, IClientErrorActionResult clientError)
Infrastructure\ResourceInvoker.cs (6)
36protected IActionResult? _result; 265protected virtual Task InvokeResultAsync(IActionResult result) 274static async Task Logged(ResourceInvoker invoker, IActionResult result) 1328var result = _result; 1572IActionResult result, 1582IActionResult result,
Infrastructure\ResourceInvoker.Log.cs (2)
85public static void BeforeExecutingActionResult(ILogger logger, IActionResult actionResult) 93public static void AfterExecutingActionResult(ILogger logger, IActionResult actionResult)
MvcCoreDiagnosticListenerExtensions.cs (6)
726IActionResult result) 740private static void AfterActionMethodImpl(DiagnosticListener diagnosticListener, ActionContext actionContext, IReadOnlyDictionary<string, object> actionArguments, object controller, IActionResult result) 952IActionResult result) 965private static void BeforeActionResultImpl(DiagnosticListener diagnosticListener, ActionContext actionContext, IActionResult result) 978IActionResult result) 991private static void AfterActionResultImpl(DiagnosticListener diagnosticListener, ActionContext actionContext, IActionResult result)
ViewFeatures\IKeepTempDataResult.cs (1)
7/// A marker interface for <see cref="IActionResult"/> types which need to have temp data saved.
Microsoft.AspNetCore.Mvc.RazorPages (24)
Diagnostics\MvcDiagnostics.cs (2)
87public AfterHandlerMethodEventData(ActionContext actionContext, IReadOnlyDictionary<string, object?> arguments, HandlerMethodDescriptor handlerMethodDescriptor, object instance, IActionResult? result) 119public IActionResult? Result { get; }
Filters\PageHandlerExecutedContext.cs (2)
107/// Gets or sets the <see cref="IActionResult"/>. 109public virtual IActionResult? Result { get; set; }
Filters\PageHandlerExecutingContext.cs (2)
47/// Gets or sets the <see cref="IActionResult"/> to execute. Setting <see cref="Result"/> to a non-<c>null</c> 50public virtual IActionResult? Result { get; set; }
Infrastructure\ExecutorFactory.cs (12)
32else if (typeof(IActionResult).IsAssignableFrom(returnType)) 43if (taskType != null && typeof(IActionResult).IsAssignableFrom(taskType.GenericTypeArguments[0])) 74public abstract Task<IActionResult?> Execute(object receiver, object?[]? arguments); 96public override async Task<IActionResult?> Execute(object receiver, object?[]? arguments) 130public override async Task<IActionResult?> Execute(object receiver, object?[]? arguments) 133return (IActionResult)result; 162public override Task<IActionResult?> Execute(object receiver, object?[]? arguments) 165return Task.FromResult<IActionResult?>(null); 171private readonly Func<object, object?[]?, IActionResult?> _thunk; 179_thunk = Expression.Lambda<Func<object, object?[]?, IActionResult?>>( 185typeof(IActionResult)), 190public override Task<IActionResult?> Execute(object receiver, object?[]? arguments)
Infrastructure\PageActionInvoker.cs (1)
104protected override Task InvokeResultAsync(IActionResult result)
Infrastructure\PageHandlerExecutorDelegate.cs (1)
6internal delegate Task<IActionResult?> PageHandlerExecutorDelegate(object handler, object?[]? arguments);
MvcRazorPagesDiagnosticListenerExtensions.cs (2)
54IActionResult? result) 69private static void AfterHandlerMethodImpl(DiagnosticListener diagnosticListener, ActionContext actionContext, HandlerMethodDescriptor handlerMethodDescriptor, IReadOnlyDictionary<string, object?> arguments, object instance, IActionResult? result)
PageLoggerExtensions.cs (2)
124public static void ExecutedHandlerMethod(this ILogger logger, HandlerMethodDescriptor handler, IActionResult? result) 136public static void ExecutedImplicitHandlerMethod(this ILogger logger, IActionResult result)
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
Filters\SaveTempDataFilter.cs (1)
119IActionResult result,
ViewComponentResult.cs (1)
13/// An <see cref="IActionResult"/> which renders a view component to the response.