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