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
10 implementations of IActionResult
BasicWebSite (1)
StoreIntoTempDataActionResult.cs (1)
9public class StoreIntoTempDataActionResult : IActionResult
Microsoft.AspNetCore.Mvc.Core (1)
ActionResult.cs (1)
9public abstract class ActionResult : IActionResult
Microsoft.AspNetCore.Mvc.Core.Test (4)
ApplicationModels\EndpointMetadataProviderTest.cs (2)
415private class AddsCustomEndpointMetadataActionResult : IEndpointMetadataProvider, IActionResult 454private class RemovesAcceptsMetadataActionResult : IEndpointMetadataProvider, IActionResult
Filters\MiddlewareFilterTest.cs (1)
495public class TestActionResult : IActionResult
Infrastructure\ControllerActionInvokerTest.cs (1)
1955public sealed class TestActionResult : IActionResult
Microsoft.AspNetCore.Mvc.Core.TestCommon (1)
CommonFilterTest.cs (1)
229private sealed class NoOpResult : IActionResult
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
Filters\SaveTempDataFilterTest.cs (2)
381private class TestActionResult : IActionResult 389private class TestKeepTempDataActionResult : IActionResult, IKeepTempDataResult
RazorPagesWebSite (1)
CustomActionResult.cs (1)
8public class CustomActionResult : IActionResult
1388 references to IActionResult
ApiExplorerWebSite (15)
Controllers\ApiExplorerApiController.cs (2)
13public IActionResult ActionWithoutParameters() => Ok(); 33public IActionResult ProducesWithUnsupportedContentType() => null;
Controllers\ApiExplorerReloadableController.cs (1)
17public IActionResult Reload([FromServices] WellKnownChangeToken changeToken)
Controllers\ApiExplorerResponseTypeWithApiConventionController.cs (6)
26public IActionResult PostWithConventions() => null; 30public IActionResult PostWithProduces(Product p) => null; 33public Task<IActionResult> PostTaskOfProduct(Product p) => null; 36public Task<IActionResult> Put(string id, Product product) => null; 39public Task<IActionResult> DeleteProductAsync(object id) => null; 43public Task<IActionResult> PostItem(Product p) => null;
Controllers\ApiExplorerResponseTypeWithAttributeController.cs (1)
32public IActionResult GetIActionResult()
Controllers\ApiExplorerResponseTypeWithoutAttributeController.cs (3)
23public IActionResult GetIActionResult() 62public Task<IActionResult> GetTaskOfIActionResult() 64return Task.FromResult<IActionResult>(new EmptyResult());
Controllers\ApiExplorerSystemVoid.cs (2)
14public IActionResult ActionWithVoidType() => Ok(); 17public IActionResult ActionWithNoExplicitType() => Ok();
ApplicationModelWebSite (4)
Controllers\ActionModelController.cs (1)
20public IActionResult Help()
Controllers\HomeController.cs (2)
35public IActionResult RouteToSuppressLinkGeneration() => RedirectToRoute(nameof(SuppressLinkGeneration)); 38public IActionResult RouteToSuppressPathMatching() => RedirectToRoute(nameof(SuppressPathMatching));
Controllers\MultipleAreasController.cs (1)
11public IActionResult Index()
BasicWebSite (105)
Areas\Area1\Controllers\RemoteAttribute_HomeController.cs (3)
16public IActionResult Create() 22public IActionResult Create(RemoteAttributeUser user) 34public IActionResult Details()
Areas\Area1\Controllers\RemoteAttribute_VerifyController.cs (1)
15public IActionResult IsIdAvailable(string userId1, string userId3)
Areas\Area2\Controllers\RemoteAttribute_VerifyController.cs (1)
16public IActionResult IsIdAvailable(RemoteAttributeUser user)
Controllers\ActionConstraints\ConsumesAttribute_OveridesBaseController.cs (1)
20public virtual IActionResult CreateProduct([FromBody] Product product)
Controllers\ActionConstraints\ConsumesAttribute_OveridesController.cs (1)
12public override IActionResult CreateProduct([FromBody] Product product)
Controllers\ActionConstraints\ConsumesAttribute_PassThroughController.cs (3)
13public IActionResult CreateProduct(Product_Json jsonInput) 19public IActionResult CreateProductMultiple(Product_Json jsonInput) 25public IActionResult CreateProductMultiple(Product_Xml jsonInput)
Controllers\ActionConstraints\ConsumesAttribute_WithFallbackActionController.cs (3)
13public IActionResult CreateProductJson() 20public IActionResult CreateProductXml() 25public IActionResult CreateProduct()
Controllers\AntiforgeryController.cs (1)
14public IActionResult Index()
Controllers\AsyncActionsController.cs (11)
25public async Task<IActionResult> ActionWithSuffixAsync() 31public Task<IActionResult> ActionReturningViewAsync() 33return Task.FromResult<IActionResult>(View()); 64public async Task<IActionResult> TaskOfIActionResultAction(string message) 70public async Task<IActionResult> TaskOfIActionResultExceptionAction(string message) 98public ValueTask<IActionResult> PreCompletedValueTaskOfIActionResultAction(string message) 100return new ValueTask<IActionResult>(Content(message)); 103public ValueTask<IActionResult> PreCompletedValueTaskOfIActionResultExceptionAction(string message) 140public CustomAwaitable<IActionResult> CustomAwaitableOfIActionResultAction(string message) 142return new CustomAwaitable<IActionResult>(SimulateDelayMilliseconds, Content(message)); 145public CustomAwaitable<IActionResult> CustomAwaitableOfIActionResultExceptionAction(string message)
Controllers\AsyncDisposableController.cs (1)
24public IActionResult SetDisposeMode(bool asyncMode, bool throwException)
Controllers\BindPropertiesSupportsGetController.cs (1)
13public IActionResult Action() => Content(Name);
Controllers\BindPropertiesWithValidationController.cs (1)
25public IActionResult Action()
Controllers\ContentNegotiation\ContentNegotiationController.cs (3)
11public IActionResult Index() 22public IActionResult UserInfo_ProducesWithTypeOnly() 28public IActionResult UserInfo_ProducesWithTypeAndContentType()
Controllers\ContentNegotiation\FallbackOnTypeBasedMatchController.cs (5)
27public IActionResult UseTheFallback_UsingCustomFormatters(int input) 41public IActionResult FallbackGivesNoMatch(int input) 52public IActionResult OverrideTheFallback_UsingCustomFormatters(int input) 61public IActionResult OverrideTheFallback_WithDefaultFormatters(int input) 72public IActionResult ReturnString(
Controllers\ContentNegotiation\InvalidContentTypeController.cs (1)
11public IActionResult SetResponseContentTypeJson()
Controllers\ContentNegotiation\ProducesJsonController.cs (1)
11public IActionResult Produces_WithNonObjectResult()
Controllers\FiltersController.cs (4)
15public IActionResult AlwaysRunResultFiltersCanRunWhenResourceFilterShortCircuit([FromBody] Product product) => 19public IActionResult ServiceFilterTest() => Content("Service filter content"); 22public IActionResult TraceResult() => new EmptyResult(); 26public IActionResult MiddlewareFilterTest()
Controllers\HomeController.cs (14)
13public IActionResult Index() 18public IActionResult CSharp7View() 37public IActionResult ActionLinkView() 44public IActionResult RedirectToActionReturningTaskAction() 49public IActionResult RedirectToRouteActionAsMethodAction() 54public IActionResult RedirectToRouteUsingRouteName() 59public IActionResult NoContentResult() 66public IActionResult HttpsOnlyAction() 77public IActionResult JsonHelperInView() 88public IActionResult JsonHelperWithSettingsInView(bool snakeCase) 100public IActionResult ViewWithPrefixedAttributeValue() 111public IActionResult Product() 117public IActionResult Product(Product product) 128public IActionResult GetAssemblyPartData([FromServices] ApplicationPartManager applicationPartManager)
Controllers\LinkGeneration\LinksController.cs (1)
10public IActionResult Index(string view)
Controllers\LinkGeneration\OrdersController.cs (2)
12public IActionResult GetAll() 18public IActionResult GetById(int id)
Controllers\LinkGeneration\ProductsController.cs (2)
10public IActionResult Index() 15public IActionResult Details()
Controllers\MonitorController.cs (1)
19public IActionResult CountActionDescriptorInvocations()
Controllers\PageRouteController.cs (4)
19public IActionResult ConventionalRoute(string page) 25public IActionResult AttributeRoute(string page) 30public IActionResult ConventionalRouteView(string page) 37public IActionResult AttributeRouteView(string page)
Controllers\PassThroughController.cs (1)
11public IActionResult Index(long value)
Controllers\RazorComponentsController.cs (3)
51public IActionResult Index() 63public IActionResult WeatherData() 69public IActionResult Navigation()
Controllers\ReadFromThrowingRequestBodyController .cs (2)
12public IActionResult AppliesAntiforgeryValidation() => Ok(); 15public IActionResult ReadForm(Person person, IFormFile form)
Controllers\RemoteAttribute_HomeController.cs (3)
15public IActionResult Create() 21public IActionResult Create(RemoteAttributeUser user) 32public IActionResult Details()
Controllers\RemoteAttribute_VerifyController.cs (1)
14public IActionResult IsIdAvailable(string userId1, string userId2, string userId5)
Controllers\RequestScopedServiceController.cs (3)
26public IActionResult FromView() 32public IActionResult FromTagHelper() 38public IActionResult FromViewComponent()
Controllers\TempDataController.cs (9)
13public IActionResult Index() 18public IActionResult DisplayTempData(string value) 24public IActionResult SetTempData(string value) 30public IActionResult GetTempDataAndRedirect() 42public IActionResult PeekTempData() 48public IActionResult SetTempDataMultiple( 81public IActionResult SetTempDataInActionResult() 93public IActionResult SetLargeValueInTempData(int size, char character) 107public IActionResult UnhandledExceptionAndSettingTempData()
Controllers\TempDataPropertyController.cs (3)
18public IActionResult CreateForView(Person person) 26public IActionResult Create(Person person) 33public IActionResult DetailsView(Person person)
Controllers\TestingController.cs (11)
24public IActionResult RedirectHandler( 42public IActionResult RedirectHandlerHeaders() 55public IActionResult RedirectHandlerToAuth() 68public IActionResult RedirectHandlerHeadersRedirect() 81public IActionResult RedirectHandlerRelative() 87public IActionResult RedirectHandlerRelativeOk() => Ok(); 90public IActionResult RedirectHandlerStatusCode303() 114public IActionResult AntiforgerySimulator([FromRoute] int value) 124public IActionResult PostRedirectGetPost([FromRoute] int value) 144public IActionResult PostRedirectGetGet([FromRoute] int value) 154public IActionResult PutNoBody([FromRoute] int value)
Controllers\UsersController.cs (1)
10public IActionResult Index()
Controllers\ViewDataPropertyController.cs (2)
21public IActionResult ViewDataPropertyToView() 27public IActionResult ViewDataPropertyToViewComponent()
ClaimsTransformation (6)
Controllers\AccountController.cs (3)
16public IActionResult Login(string returnUrl = null) 29public async Task<IActionResult> Login(string userName, string password, string returnUrl = null) 57public async Task<IActionResult> Logout()
Controllers\HomeController.cs (3)
13public IActionResult Index() 19public IActionResult MyClaims() 24public IActionResult Error()
ControllersFromServicesClassLibrary (7)
ControllerWithConstructorInjection.cs (1)
25public IActionResult Index()
EmployeeRecords.cs (2)
11public IActionResult UpdateRecords(string recordId) 18public IActionResult Save(string id)
GenericController.cs (1)
11public IActionResult Index()
Inventory.cs (1)
11public IActionResult Get()
NestedControllerOwner.cs (1)
13public IActionResult Index()
TimeScheduleController.cs (1)
11public IActionResult GetSchedule(int id)
ControllersFromServicesWebSite (4)
AnotherController.cs (3)
12public IActionResult Get() 18public IActionResult ViewComponentAction() 24public IActionResult InServicesTagHelper()
NotInServicesController.cs (1)
11public IActionResult Index()
Cookies (7)
Controllers\AccountController.cs (4)
15public IActionResult Login(string returnUrl = null) 28public async Task<IActionResult> Login(string userName, string password, string returnUrl = null) 56public IActionResult AccessDenied(string returnUrl = null) 61public async Task<IActionResult> Logout()
Controllers\HomeController.cs (3)
13public IActionResult Index() 19public IActionResult MyClaims() 24public IActionResult Error()
CustomPolicyProvider (7)
Controllers\AccountController.cs (4)
14public IActionResult Signin(string returnUrl = null) 21public async Task<IActionResult> Signin(string userName, string birthDate = null, string returnUrl = null) 44public async Task<IActionResult> Signout() 50public IActionResult Denied()
Controllers\HomeController.cs (3)
12public IActionResult Index() 19public IActionResult MinimumAge10() 26public IActionResult MinimumAge50()
DynamicSchemes (2)
Controllers\AuthController.cs (2)
23public IActionResult Remove(string scheme) 31public async Task<IActionResult> AddOrUpdate(string scheme, string optionsMessage)
ErrorPageMiddlewareWebSite (6)
AggregateExceptionController.cs (1)
11public IActionResult Index()
ErrorPageMiddlewareController.cs (5)
12public IActionResult CompilationFailure() 18public IActionResult ParserError() 24public IActionResult ViewImportsError() 30public IActionResult RuntimeError() => View(); 33public IActionResult ReflectionTypeLoadException()
FilesWebSite (14)
Controllers\DownloadFilesController.cs (11)
21public IActionResult DownloadFromDisk() 27public IActionResult DownloadFromDisk_WithLastModifiedAndEtag() 35public IActionResult DownloadFromDiskWithFileName() 41public IActionResult DownloadFromDiskWithFileName_WithLastModifiedAndEtag() 49public IActionResult DownloadFromDiskSymlink() 64public IActionResult DownloadFromStream() 75public IActionResult DownloadFromStreamWithFileName() 86public IActionResult DownloadFromStreamWithFileName_WithEtag() 97public IActionResult DownloadFromBinaryData() 103public IActionResult DownloadFromBinaryDataWithFileName() 109public IActionResult DownloadFromBinaryDataWithFileName_WithEtag()
Controllers\EmbeddedFilesController.cs (3)
12public IActionResult DownloadFileWithFileName() 22public IActionResult DownloadFileWithFileName_RangeProcessingNotEnabled() 31public IActionResult DownloadFileWithFileName_WithEtag()
FormatterWebSite (23)
Controllers\DoNotRespectBrowserAcceptHeaderController.cs (1)
32public IActionResult CreateEmployee([FromBody] Employee employee)
Controllers\HomeController.cs (6)
14public IActionResult Index([FromBody] DummyClass dummyObject) 42public IActionResult DefaultBody([FromBody] DummyClass dummy) 46public IActionResult OptionalBody([FromBody(EmptyBodyBehavior = EmptyBodyBehavior.Allow)] DummyClass dummy) 50public IActionResult DefaultValueBody([FromBody] DummyClass dummy = null) 55public IActionResult NonNullableBody([FromBody] DummyClass dummy) 59public IActionResult NullableBody([FromBody] DummyClass? dummy)
Controllers\InputFormatterController.cs (1)
10public IActionResult ReturnInput([FromBody] string test)
Controllers\JsonFormatterController.cs (4)
30public IActionResult ReturnsIndentedJson() 49public IActionResult ReturnNonNullableInput([FromBody] DummyClass dummyObject) 61public IActionResult ReturnInput([FromBody] DummyClass dummyObject) 72public IActionResult ValueTypeAsBody([FromBody] int value)
Controllers\JsonPatchController.cs (1)
13public IActionResult PatchProduct([FromBody] JsonPatchDocument<Product> patchDoc)
Controllers\PolymorphicBindingController.cs (2)
11public IActionResult ModelBound([ModelBinder(typeof(PolymorphicBinder))] BaseModel person) 22public IActionResult InputFormatted([FromBody] IModel person)
Controllers\PolymorphicPropertyBindingController.cs (1)
15public IActionResult Action()
Controllers\SerializableErrorController.cs (1)
11public IActionResult CreateEmployee([FromBody] Employee employee)
Controllers\TestApiController.cs (1)
14public IActionResult PostBookWithNoValidation(BookModelWithNoValidation bookModel) => Ok();
Controllers\TopLevelValidationController.cs (1)
29public IActionResult Index(
Controllers\ValidationController.cs (4)
12public IActionResult Index([FromBody] User user) 72public IActionResult ValidationProviderAttribute([FromBody] ValidationProviderAttributeModel validationProviderAttributeModel) 83public IActionResult ValidationThrowsError_WhenValidationExceedsMaxValidationDepth([FromBody] InfinitelyRecursiveModel model) 90public IActionResult CreateInvalidModel([FromBody] InvalidModel model)
GenericHostWebSite (10)
Controllers\TestingController.cs (10)
23public IActionResult RedirectHandler( 41public IActionResult RedirectHandlerHeaders() 54public IActionResult RedirectHandlerHeadersRedirect() 67public IActionResult RedirectHandlerRelative() 73public IActionResult RedirectHandlerRelativeOk() => Ok(); 76public IActionResult RedirectHandlerStatusCode303() 100public IActionResult AntiforgerySimulator([FromRoute] int value) 110public IActionResult PostRedirectGetPost([FromRoute] int value) 130public IActionResult PostRedirectGetGet([FromRoute] int value) 140public IActionResult PutNoBody([FromRoute] int value)
HtmlGenerationWebSite (49)
Areas\Customer\Controllers\HtmlGeneration_CustomerController.cs (3)
11public IActionResult Index(Models.Customer customer) 17public IActionResult CustomerWithRecords() 22public IActionResult CustomerWithRecords(Models.CustomerRecord customer)
Controllers\Catalog_CacheTagHelperController.cs (9)
13public IActionResult Splash(int categoryId, int correlationId, [FromHeader] string locale) 24public IActionResult Details(int id) 31public IActionResult ShoppingCart(int correlationId) 38public IActionResult GuestConfirmPayment(string region, int confirmationId = 0) 46public IActionResult ConfirmPayment(string region, string section, int confirmationId) 56public IActionResult PastPurchases(string id, int correlationId) 67public IActionResult ListCategories(string category, int correlationId) 76public IActionResult UpdateProducts( 86public IActionResult Deals(int dealPercentage, bool isEnabled)
Controllers\CheckViewData.cs (3)
11public IActionResult AtViewModel() 16public IActionResult NullViewModel() 21public IActionResult ViewModel()
Controllers\HtmlGeneration_HomeController.cs (28)
59public IActionResult Enum() 64public IActionResult Order() 71public IActionResult OrderUsingHtmlHelpers() 78public IActionResult Product() 89public IActionResult ProductSubmit(Product product) 94public IActionResult Customer() 99public IActionResult Index() 104public IActionResult ProductList() 109public IActionResult ProductListUsingTagHelpers() => View(_products); 111public IActionResult ProductListUsingTagHelpersWithNullModel() 121public IActionResult EmployeeList() 153public IActionResult CreateWarehouse() 160public IActionResult EditWarehouse() 178public IActionResult Warehouse() 194public IActionResult Environment() 199public IActionResult Link() 204public IActionResult Image() 209public IActionResult Script() 214public IActionResult Form() 219public IActionResult Input() 224public IActionResult ItemUsingSharedEditorTemplate() 229public IActionResult ItemUsingModelSpecificEditorTemplate() 234public IActionResult AttributesWithBooleanValues() 239public IActionResult ValidationProviderAttribute() => View(); 242public IActionResult ValidationProviderAttribute(ValidationProviderAttributeModel model) => View(model); 244public IActionResult PartialTagHelperWithoutModel() => View(); 246public IActionResult StatusMessage() => View(new StatusMessageModel { Message = "Some status message" }); 248public IActionResult NullStatusMessage() => View("StatusMessage", new StatusMessageModel());
Controllers\HtmlGeneration_OrderController.cs (1)
11public IActionResult Submit(Order order)
Controllers\HtmlGeneration_ProductController.cs (3)
11public IActionResult Index() 16public IActionResult Submit(Product product) 21public IActionResult List()
Controllers\HtmlGeneration_WeirdExpressions.cs (2)
11public IActionResult GetWeirdWithHtmlHelpers() 16public IActionResult GetWeirdWithTagHelpers()
Identity.DefaultUI.WebSite (2)
Pages\Contoso\Login.cshtml.cs (2)
41public IActionResult OnGet() 46public async Task<IActionResult> OnPostAsync()
Identity.ExternalClaims (35)
Controllers\AccountController.cs (1)
29public async Task<IActionResult> Logout()
Pages\Account\ConfirmEmail.cshtml.cs (1)
24public async Task<IActionResult> OnGetAsync(string userId, string code)
Pages\Account\ExternalLogin.cshtml.cs (4)
50public IActionResult OnGetAsync() 55public IActionResult OnPost(string provider, string returnUrl = null) 63public async Task<IActionResult> OnGetCallbackAsync(string returnUrl = null, string remoteError = null) 109public async Task<IActionResult> OnPostConfirmationAsync(string returnUrl = null)
Pages\Account\ForgotPassword.cshtml.cs (1)
37public async Task<IActionResult> OnPostAsync()
Pages\Account\Login.cshtml.cs (1)
68public async Task<IActionResult> OnPostAsync(string returnUrl = null)
Pages\Account\LoginWith2fa.cshtml.cs (2)
47public async Task<IActionResult> OnGetAsync(bool rememberMe, string returnUrl = null) 63public async Task<IActionResult> OnPostAsync(bool rememberMe, string returnUrl = null)
Pages\Account\LoginWithRecoveryCode.cshtml.cs (2)
42public async Task<IActionResult> OnGetAsync(string returnUrl = null) 56public async Task<IActionResult> OnPostAsync(string returnUrl = null)
Pages\Account\Manage\ChangePassword.cshtml.cs (2)
58public async Task<IActionResult> OnGetAsync() 75public async Task<IActionResult> OnPostAsync()
Pages\Account\Manage\Disable2fa.cshtml.cs (2)
29public async Task<IActionResult> OnGet() 45public async Task<IActionResult> OnPostAsync()
Pages\Account\Manage\EnableAuthenticator.cshtml.cs (2)
55public async Task<IActionResult> OnGetAsync() 73public async Task<IActionResult> OnPostAsync()
Pages\Account\Manage\ExternalLogins.cshtml.cs (4)
38public async Task<IActionResult> OnGetAsync() 54public async Task<IActionResult> OnPostRemoveLoginAsync(string loginProvider, string providerKey) 73public async Task<IActionResult> OnPostLinkLoginAsync(string provider) 84public async Task<IActionResult> OnGetLinkLoginCallbackAsync()
Pages\Account\Manage\GenerateRecoveryCodes.cshtml.cs (1)
31public async Task<IActionResult> OnGetAsync()
Pages\Account\Manage\Index.cshtml.cs (3)
55public async Task<IActionResult> OnGetAsync() 76public async Task<IActionResult> OnPostAsync() 110public async Task<IActionResult> OnPostSendVerificationEmailAsync()
Pages\Account\Manage\ResetAuthenticator.cshtml.cs (2)
28public async Task<IActionResult> OnGet() 39public async Task<IActionResult> OnPostAsync()
Pages\Account\Manage\SetPassword.cshtml.cs (2)
49public async Task<IActionResult> OnGetAsync() 67public async Task<IActionResult> OnPostAsync()
Pages\Account\Manage\TwoFactorAuthentication.cshtml.cs (1)
39public async Task<IActionResult> OnGet()
Pages\Account\Register.cshtml.cs (1)
66public async Task<IActionResult> OnPostAsync(string returnUrl = null)
Pages\Account\ResetPassword.cshtml.cs (2)
47public IActionResult OnGet(string code = null) 63public async Task<IActionResult> OnPostAsync()
Pages\Account\SignedOut.cshtml.cs (1)
13public IActionResult OnGet()
IdentitySample.DefaultUI (4)
Areas\Identity\Pages\Account\Manage\Index.cshtml.cs (2)
50public async Task<IActionResult> OnGetAsync() 69public async Task<IActionResult> OnPostAsync()
Areas\Identity\Pages\Account\Register.cshtml.cs (1)
76public async Task<IActionResult> OnPostAsync(string returnUrl = null)
Controllers\HomeController.cs (1)
11public IActionResult Index()
IdentitySample.Mvc (41)
Controllers\AccountController.cs (23)
42public IActionResult Login(string returnUrl = null) 53public async Task<IActionResult> Login(LoginViewModel model, string returnUrl = null) 90public IActionResult Register(string returnUrl = null) 101public async Task<IActionResult> Register(RegisterViewModel model, string returnUrl = null) 131public async Task<IActionResult> LogOff() 143public IActionResult ExternalLogin(string provider, string returnUrl = null) 155public async Task<IActionResult> ExternalLoginCallback(string returnUrl = null, string remoteError = null) 201public async Task<IActionResult> ExternalLoginConfirmation(ExternalLoginConfirmationViewModel model, string returnUrl = null) 237public async Task<IActionResult> ConfirmEmail(string userId, string code) 256public IActionResult ForgotPassword() 266public async Task<IActionResult> ForgotPassword(ForgotPasswordViewModel model) 294public IActionResult ForgotPasswordConfirmation() 303public IActionResult ResetPassword(string code = null) 313public async Task<IActionResult> ResetPassword(ResetPasswordViewModel model) 338public IActionResult ResetPasswordConfirmation() 364public async Task<IActionResult> SendCode(SendCodeViewModel model) 406public async Task<IActionResult> VerifyCode(string provider, bool rememberMe, string returnUrl = null) 422public async Task<IActionResult> VerifyCode(VerifyCodeViewModel model) 453public async Task<IActionResult> VerifyAuthenticatorCode(bool rememberMe, string returnUrl = null) 469public async Task<IActionResult> VerifyAuthenticatorCode(VerifyAuthenticatorCodeViewModel model) 500public async Task<IActionResult> UseRecoveryCode(string returnUrl = null) 516public async Task<IActionResult> UseRecoveryCode(UseRecoveryCodeViewModel model) 550private IActionResult RedirectToLocal(string returnUrl)
Controllers\HomeController.cs (1)
11public IActionResult Index()
Controllers\ManageController.cs (17)
39public async Task<IActionResult> Index(ManageMessageId? message = null) 67public async Task<IActionResult> RemoveLogin(RemoveLoginViewModel account) 85public IActionResult AddPhoneNumber() 94public async Task<IActionResult> AddPhoneNumber(AddPhoneNumberViewModel model) 111public async Task<IActionResult> ResetAuthenticatorKey() 126public async Task<IActionResult> GenerateRecoveryCode() 142public async Task<IActionResult> EnableTwoFactorAuthentication() 158public async Task<IActionResult> DisableTwoFactorAuthentication() 173public async Task<IActionResult> VerifyPhoneNumber(string phoneNumber) 184public async Task<IActionResult> VerifyPhoneNumber(VerifyPhoneNumberViewModel model) 209public async Task<IActionResult> RemovePhoneNumber() 227public IActionResult ChangePassword() 236public async Task<IActionResult> ChangePassword(ChangePasswordViewModel model) 261public IActionResult SetPassword() 270public async Task<IActionResult> SetPassword(SetPasswordViewModel model) 294public async Task<IActionResult> ManageLogins(ManageMessageId? message = null) 321public IActionResult LinkLogin(string provider)
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)
367if (typeof(IActionResult).IsAssignableFrom(unwrappedType) ||
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (4)
DefaultApiDescriptionProviderTest.cs (4)
2361private IActionResult ReturnsActionResult() 2386private Task<IActionResult> ReturnsTaskOfActionResult() 2411private ValueTask<IActionResult> ReturnsValueTaskOfActionResult() 2622public IActionResult ReturnsActionResult()
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)
402static async Task Awaited(ControllerActionInvoker invoker, ValueTask<IActionResult> actionResultValueTask) 419IActionResult? result = null; 645public 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)
34protected IActionResult? _result; 261protected virtual Task InvokeResultAsync(IActionResult result) 270static async Task Logged(ResourceInvoker invoker, IActionResult result) 1324var result = _result; 1568IActionResult result, 1578IActionResult 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.Core.Test (172)
ActionResultOfTTest.cs (4)
53var result = convertToActionResult.Convert(); 68var result = convertToActionResult.Convert(); 86var result = convertToActionResult.Convert(); 104var result = convertToActionResult.Convert();
ApiExplorer\ApiConventionMatcherTest.cs (3)
534public IActionResult Get(int id) => null; 536public IActionResult Search(string searchTerm, bool sortDescending, int page) => null; 538public IActionResult SearchEmpty() => null;
ApiExplorer\ApiConventionResultTest.cs (8)
25public IActionResult NoMatch(int id) => null; 49public IActionResult Match(int id) => null; 90public IActionResult Get(int id) => null; 206public IActionResult GetUser(Guid id) => null; 208public IActionResult PostUser(User user) => null; 210public IActionResult PutUser(Guid userId, User user) => null; 212public IActionResult Delete(Guid userId) => null; 215public IActionResult EditUser(int id, User user) => null;
ApplicationModels\ApiBehaviorApplicationModelProviderTest.cs (1)
226public IActionResult TestAction(object value) => null;
ApplicationModels\ApiConventionApplicationModelConventionTest.cs (2)
182public IActionResult NoMatch() => null; 184public IActionResult Delete(int id) => null;
ApplicationModels\ConsumesConstraintForFormFileParameterConventionTest.cs (5)
79public IActionResult FormFileParameter(IFormFile formFile) => null; 82public IActionResult FormFileCollectionParameter(IFormFileCollection formFiles) => null; 85public IActionResult FormFileSequenceParameter(IFormFile[] formFiles) => null; 88public IActionResult FromFormParameter([FromForm] string parameter) => null; 92public IActionResult ActionWithConsumesAttribute([FromForm] string parameter) => null;
ApplicationModels\DefaultApplicationModelProviderTest.cs (8)
1449public virtual IActionResult Redirect(string url) 1471public override IActionResult Redirect(string url) 1779public IActionResult PostAction([FromQuery] string fromQuery, IFormFileCollection formFileCollection, string unbound) => null; 1781public IActionResult FormFilesSequences( 1788public IActionResult PostAction1(Guid guid) => null; 1790public IActionResult PostAction2([FromQuery] Guid fromQuery) => null; 1859public Task<IActionResult> GetPersonAsync() => null; 1862public Task<IActionResult> GetAddressAsync() => null;
ApplicationModels\InferParameterBindingInfoConventionTest.cs (57)
947public IActionResult ActionWithBoundParameter([FromBody] object parameter) => null; 950public IActionResult SimpleRouteToken(int id) => null; 953public IActionResult OptionalRouteToken(int id) => null; 956public IActionResult ConstrainedRouteToken(int status) => null; 959public IActionResult ComplexTypeInRoute(object status) => null; 963public IActionResult ParameterInMultipleRoutes(int id) => null; 968public IActionResult ParameterNotInAllRoutes(int id) => null; 971public IActionResult ComplexTypeModel(TestModel model) => null; 974public IActionResult CompositeComplexTypeModel(CompositeTestModel model) => null; 977public IActionResult SimpleTypeModel(ConvertibleFromString model) => null; 980public IActionResult FormFileParameter(IFormFile formFile) => null; 983public IActionResult FormFileCollectionParameter(IFormFileCollection formFiles) => null; 986public IActionResult FormFileSequenceParameter(IFormFile[] formFiles) => null; 989public IActionResult FromFormParameter([FromForm] string parameter) => null; 993public IActionResult ActionWithConsumesAttribute([FromForm] string parameter) => null; 996public IActionResult ComplexTypeModelWithCancellationToken(TestModel model, CancellationToken cancellationToken) => null; 1000public IActionResult RequiredComplexType(TestModel model) => new OkResult(); 1003public IActionResult NullableComplexType(TestModel? model) => new OkResult(); 1007public IActionResult ComplexTypeWithDefaultValue(TestModel model = null) => null; 1010public IActionResult ModelBinderAttribute([ModelBinder(Name = "top")] int value) => null; 1013public IActionResult FromQuery([FromQuery] int value) => null; 1016public IActionResult FromQueryWithCustomName([FromQuery(Name = "top")] int value) => null; 1019public IActionResult FromQueryOnComplexType([FromQuery] GpsCoordinates gpsCoordinates) => null; 1022public IActionResult FromQueryOnComplexTypeWithCustomName([FromQuery(Name = "gps")] GpsCoordinates gpsCoordinates) => null; 1025public IActionResult FromQueryOnCollectionType([FromQuery] ICollection<int> value) => null; 1028public IActionResult FromQueryOnArrayType([FromQuery] int[] value) => null; 1031public IActionResult FromQueryOnArrayTypeWithCustomName([FromQuery(Name = "ids")] int[] value) => null; 1034public IActionResult FromRoute([FromRoute] int value) => null; 1037public IActionResult FromRouteWithCustomName([FromRoute(Name = "top")] int value) => null; 1040public IActionResult FromRouteOnComplexType([FromRoute] GpsCoordinates gpsCoordinates) => null; 1043public IActionResult FromRouteOnComplexTypeWithCustomName([FromRoute(Name = "gps")] GpsCoordinates gpsCoordinates) => null; 1046public IActionResult ParameterWithRequestPredicateProvider([CustomRequestPredicateAndPropertyFilterProvider] int value) => null; 1048public IActionResult FromFormFormFileParameters([FromForm] IFormFile p1, [FromForm] IFormFile[] p2, [FromForm] IFormFileCollection p3) => null; 1050public IActionResult FormFileParameters(IFormFile p1, IFormFile[] p2, IFormFileCollection p3) => null; 1052public IActionResult CollectionOfSimpleTypes(IList<int> parameter) => null; 1054public IActionResult IEnumerableOfSimpleTypes(IEnumerable<int> parameter) => null; 1056public IActionResult CollectionOfComplexTypes(IList<TestModel> parameter) => null; 1058public IActionResult IEnumerableOfComplexTypes(IEnumerable<TestModel> parameter) => null; 1060public IActionResult ServiceParameter(IApplicationModelProvider parameter) => null; 1062public IActionResult IEnumerableServiceParameter(IEnumerable<IApplicationModelProvider> parameter) => null; 1070public IActionResult ModelBinderAttributeWithExplicitModelName([ModelBinder(Name = "top")] int value) => null; 1073public IActionResult ModelBinderType([ModelBinder(typeof(TestModelBinder))] string name) => null; 1076public IActionResult ModelBinderTypeWithExplicitModelName([ModelBinder(typeof(TestModelBinder), Name = "foo")] string name) => null; 1085public IActionResult ActionWithoutRoute(int id) => null; 1088public IActionResult ActionWithRoute(int id) => null; 1091public IActionResult AbsoluteRoute(int id) => null; 1095public IActionResult MultipleRoute(int id) => null; 1099public IActionResult MultipleRouteWithOverride(int id) => null; 1106public IActionResult SimpleRoute(int parameter) => null; 1109public IActionResult NoRouteTemplate(int id) => null; 1113public IActionResult ParameterInMultipleRoutes(int id) => null; 1167public IActionResult SomeAction([FromQuery] TestModel test) => null; 1175public IActionResult SomeAction([FromQuery] List<int> test) => null; 1182public IActionResult MultipleInferred(TestModel a, Car b) => null; 1184public IActionResult InferredAndSpecified(TestModel a, [FromBody] int b) => null; 1186public IActionResult MultipleSpecified([FromBody] decimal a, [FromBody] int b) => null; 1192public IActionResult Action([ModelBinder(typeof(ComplexObjectModelBinder))] Car car) => null;
ControllerBaseTest.cs (4)
3294public IActionResult Content_WithNoEncoding() 3299public IActionResult Content_WithEncodingInCharset() 3304public IActionResult Content_WithInvalidCharset() 3309public IActionResult Content_WithEncodingInCharset_AndEncodingParameter()
DependencyInjection\ApiBehaviorOptionsSetupTest.cs (5)
38var result = ApiBehaviorOptionsSetup.ProblemDetailsInvalidModelStateResponse(factory, actionContext); 60var result = ApiBehaviorOptionsSetup.ProblemDetailsInvalidModelStateResponse(factory, actionContext); 83var result = ApiBehaviorOptionsSetup.ProblemDetailsInvalidModelStateResponse(factory, actionContext); 105var result = ApiBehaviorOptionsSetup.ProblemDetailsInvalidModelStateResponse(factory, actionContext); 122var result = ApiBehaviorOptionsSetup.ProblemDetailsInvalidModelStateResponse(factory, actionContext);
Formatters\FormatFilterTest.cs (2)
150var actionResult = resourceExecutingContext.Result; 231var actionResult = resourceExecutingContext.Result;
Infrastructure\ActionMethodExecutorTest.cs (6)
439private async ValueTask<IActionResult> Execute(ActionMethodExecutor actionMethodExecutor, 445return (IActionResult)await actionMethodExecutor.Execute(context); 464public IActionResult ReturnIActionResult() => new ContentResult(); 490public Task<IActionResult> ReturnIActionResultAsync() => Task.FromResult((IActionResult)new StatusCodeResult(201)); 511public IActionResult Convert() => null;
Infrastructure\ActionResultTypeMapperTest.cs (5)
21var result = mapper.Convert(returnValue, typeof(string)); 36var result = mapper.Convert(returnValue, returnValue.GetType()); 52var result = mapper.Convert(returnValue, returnValue.GetType()); 67var result = mapper.Convert(returnValue, typeof(string)); 107public IActionResult Convert() => new EmptyResult();
Infrastructure\ClientErrorResultFilterTest.cs (3)
15private static readonly IActionResult Result = new EmptyResult(); 41.Returns((IActionResult)null) 113private static ResultExecutingContext GetContext(IActionResult actionResult)
Infrastructure\ControllerActionInvokerProviderTest.cs (1)
94public IActionResult GetAction() => new OkResult();
Infrastructure\ControllerActionInvokerTest.cs (43)
155var expected = new Mock<IActionResult>(MockBehavior.Strict); 267IActionResult result = null; 292IActionResult result = null; 321var result = new Mock<IActionResult>(MockBehavior.Strict); 378var result = new Mock<IActionResult>(MockBehavior.Strict); 648var result = new Mock<IActionResult>(MockBehavior.Strict); 693var expected = Mock.Of<IActionResult>(); 859IActionResult result = null; 884IActionResult result = null; 910IActionResult result = null; 933IActionResult result = null; 956IActionResult result = null; 979IActionResult result = null; 1003IActionResult result = null; 1026IActionResult result = null; 1053IActionResult result = null; 1079IActionResult result = null; 1106IActionResult result = null; 1135IActionResult result = null; 1163IActionResult result = null; 1193IActionResult result = null; 1216IActionResult result = null; 1242IActionResult result = null; 1272IActionResult result = null; 1302IActionResult result = null; 1331IActionResult result = null; 1351[InlineData(nameof(TestController.ActionMethodWithNullActionResult), typeof(IActionResult))] 1353[InlineData(nameof(TestController.AsyncActionMethodWithNullActionResult), typeof(IActionResult))] 1359IActionResult result = null; 1454IActionResult result = null; 1479IActionResult result = null; 1503IActionResult result = null; 1527IActionResult result = null; 1575var actionSignature = $"{typeof(IActionResult).FullName} {nameof(TestController.ActionMethod)}()"; 1602IActionResult result = null, 1782public IActionResult ActionMethod() 1792public IActionResult ActionMethodWithDefaultValues(int value = 5) 1807public IActionResult ActionMethodWithNullActionResult() 1827public async Task<IActionResult> AsyncActionMethodWithNullActionResult() 1829return await Task.FromResult<IActionResult>(null); 1933mock.Setup(m => m.Convert()).Returns((IActionResult)null); 1978public IActionResult Convert() => new TestActionResult { Value = Value };
Infrastructure\ProblemDetalsClientErrorFactoryTest.cs (4)
27var result = factory.GetClientError(GetActionContext(), clientError); 54var result = factory.GetClientError(GetActionContext(), clientError); 84var result = factory.GetClientError(GetActionContext(), clientError); 110var result = factory.GetClientError(GetActionContext(), clientError);
ModelBinding\Binders\ArrayModelBinderTest.cs (1)
42private IActionResult ActionWithArrayParameter(string[] parameter) => null;
ModelBinding\Binders\CollectionModelBinderTest.cs (2)
229private IActionResult ActionWithListParameter(List<string> parameter) => null; 230private IActionResult ActionWithListParameterDefaultValue(List<string> parameter = null) => null;
ModelBinding\Binders\ComplexObjectModelBinderTest.cs (3)
272private IActionResult ActionWithComplexParameter(Person parameter) => null; 322private IActionResult ActionWithNoSettablePropertiesParameter(PersonWithNoProperties parameter) => null; 366private IActionResult ActionWithAllPropertiesExcludedParameter(PersonWithAllPropertiesExcluded parameter) => null;
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (3)
271private IActionResult ActionWithComplexParameter(Person parameter) => null; 382private IActionResult ActionWithNoSettablePropertiesParameter(PersonWithNoProperties parameter) => null; 426private IActionResult ActionWithAllPropertiesExcludedParameter(PersonWithAllPropertiesExcluded parameter) => null;
ModelBinding\Binders\DictionaryModelBinderTest.cs (2)
412private IActionResult ActionWithDictionaryParameter(Dictionary<string, string> parameter) => null; 496private IActionResult ActionWithDefaultValueDictionaryParameter(Dictionary<string, string> parameter = null) => null;
Microsoft.AspNetCore.Mvc.Core.TestCommon (26)
CommonResourceInvokerTest.cs (26)
23IActionResult result = null, 32IActionResult result = null, 79IActionResult resultFromAction = null; 80var expected = new Mock<IActionResult>(MockBehavior.Strict); 121IActionResult resultFromAction = null; 122var expected = new Mock<IActionResult>(MockBehavior.Strict); 193var result = new Mock<IActionResult>(MockBehavior.Strict); 259var result = new Mock<IActionResult>(MockBehavior.Strict); 327var result = new Mock<IActionResult>(MockBehavior.Strict); 395var result = new Mock<IActionResult>(MockBehavior.Strict); 436var result = new Mock<IActionResult>(MockBehavior.Strict); 495var result = new Mock<IActionResult>(MockBehavior.Strict); 523var result = new Mock<IActionResult>(MockBehavior.Strict); 615var challenge = new Mock<IActionResult>(MockBehavior.Strict); 649var challenge = new Mock<IActionResult>(MockBehavior.Strict); 736var challenge = new Mock<IActionResult>(MockBehavior.Strict); 958var result = new Mock<IActionResult>(MockBehavior.Strict); 991var result = new Mock<IActionResult>(MockBehavior.Strict); 1036var result = new Mock<IActionResult>(MockBehavior.Strict); 1240var expected = Mock.Of<IActionResult>(); 1279var expected = Mock.Of<IActionResult>(); 1522var expected = new Mock<IActionResult>(MockBehavior.Strict); 1624var expected = new Mock<IActionResult>(MockBehavior.Strict); 1686c.Result = Mock.Of<IActionResult>();
Microsoft.AspNetCore.Mvc.Cors.Test (6)
CorsApplicationModelProviderTest.cs (6)
226public IActionResult Action() 245public IActionResult Action() 255public IActionResult Action() 264public IActionResult Action() 274public IActionResult Action() 284public IActionResult Action()
Microsoft.AspNetCore.Mvc.IntegrationTests (8)
ServicesModelBinderIntegrationTest.cs (8)
137ParameterType = typeof(IEnumerable<IActionResult>), 151var actionResultArray = Assert.IsType<IActionResult[]>(modelBindingResult.Model); 173ParameterType = typeof(IActionResult), 181Assert.Contains(typeof(IActionResult).FullName, exception.Message); 187public void Action(IActionResult? service, ITypeActivatorCache? service2) 191public void ActionWithDefaultValue(IActionResult service = default, ITypeActivatorCache service2 = default) 243ParameterType = typeof(IActionResult), 312ParameterType = typeof(IActionResult),
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)
102protected 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.RazorPages.Test (45)
Infrastructure\ExecutorFactoryTest.cs (15)
28var actionResult = await actionResultTask; 48var actionResult = await actionResultTask; 69var actionResult = await actionResultTask; 92var actionResult = await actionResultTask; 115var actionResult = await actionResultTask; 137var actionResult = await actionResultTask; 158var actionResult = await actionResultTask; 225public IActionResult ActionResultReturningHandler() => new EmptyResult(); 227public IActionResult ActionResultReturnHandlerWithParameters(int arg1, string arg2 = "Hello") 250public Task<IActionResult> GenericTaskHandler() => Task.FromResult<IActionResult>(new EmptyResult()); 270public IActionResult ActionResultReturningHandler() => new EmptyResult(); 272public IActionResult ActionResultReturnHandlerWithParameters(int arg1, string arg2 = "Hello") 295public Task<IActionResult> GenericTaskHandler() => Task.FromResult<IActionResult>(new EmptyResult());
Infrastructure\PageActionInvokerTest.cs (22)
158IActionResult result = null; 214IActionResult result = null; 271IActionResult result = null; 479var result = c.Result; 498IActionResult result = null; 524IActionResult result = null; 556IActionResult result = null; 591IActionResult result = null; 625IActionResult result = null; 660IActionResult result = null; 694IActionResult result = null; 729IActionResult result = null; 763IActionResult result = null; 799IActionResult result = null; 832var result = new Mock<IActionResult>(MockBehavior.Strict); 892var result = new Mock<IActionResult>(MockBehavior.Strict); 1175var result = new Mock<IActionResult>(MockBehavior.Strict); 1221var expected = Mock.Of<IActionResult>(); 1440IActionResult result = null, 1466handlers.Add((obj, args) => Task.FromException<IActionResult>(exception)); 1534handlers[i] = (obj, args) => Task.FromResult<IActionResult>(new PageResult());
PageModelTest.cs (4)
2047public IActionResult Content_WithNoEncoding() 2052public IActionResult Content_WithEncodingInCharset() 2057public IActionResult Content_WithInvalidCharset() 2062public IActionResult Content_WithEncodingInCharset_AndEncodingParameter()
PageTest.cs (4)
1890public IActionResult Content_WithNoEncoding() 1895public IActionResult Content_WithEncodingInCharset() 1900public IActionResult Content_WithInvalidCharset() 1905public IActionResult Content_WithEncodingInCharset_AndEncodingParameter()
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
Filters\SaveTempDataFilter.cs (1)
128IActionResult result,
ViewComponentResult.cs (1)
13/// An <see cref="IActionResult"/> which renders a view component to the response.
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (57)
ControllerUnitTestabilityTests.cs (40)
24var result = controller.View_Action(viewName, model); 46var result = controller.PartialView_Action(viewName, model); 70var result = controller.Content_Action(content, contentType, encoding); 91var result = controller.Created_Action(uri, content); 111var result = controller.Accepted_Action(uri, content); 132var result = controller.FileContent_Action(content, contentType, fileName); 165var result = controller.FileStream_Action(content, contentType, fileName); 195var result = controller.Json_Action(model); 227var result = controller.JsonWithSerializerSettings_Action(model, serializerSettings); 245var result = controller.HttpNotFound_Action(); 261var result = controller.HttpNotFoundObject_Action("Test Content"); 278var result = controller.HttpBadRequest_Action(); 295var result = controller.HttpBadRequestObject_Action(error); 328var result = controller.CreatedAtRoute_Action(routeName, routeValues, value); 364var result = controller.AcceptedAtRoute_Action(routeName, routeValues, value); 401var result = controller.CreatedAtAction_Action(actionName, controllerName, routeValues, value); 440var result = controller.AcceptedAtAction_Action(actionName, controllerName, routeValues, value); 477var result = controller.RedirectToRoute_Action(routeName, routeValues); 511var result = controller.RedirectToAction_Action(actionName, controllerName, routeValues); 545var result = controller.Redirect_Action(url); 738public IActionResult View_Action(string viewName, object data) 743public IActionResult PartialView_Action(string viewName, object data) 748public IActionResult Content_Action(string content, string contentType, Encoding encoding) 753public IActionResult Created_Action(string uri, object data) 758public IActionResult Accepted_Action(string uri, object data) 763public IActionResult FileContent_Action(string content, string contentType, string fileName) 769public IActionResult FileStream_Action(string content, string contentType, string fileName) 775public IActionResult Json_Action(object data) 780public IActionResult JsonWithSerializerSettings_Action(object data, object serializerSettings) 785public IActionResult Redirect_Action(string url) 790public IActionResult RedirectToAction_Action(string actionName, string controllerName, object routeValues) 795public IActionResult RedirectToRoute_Action(string routeName, object routeValues) 800public IActionResult CreatedAtAction_Action(string actionName, string controllerName, object routeValues, object value) 805public IActionResult CreatedAtRoute_Action(string routeName, object routeValues, object value) 810public IActionResult AcceptedAtAction_Action(string actionName, string controllerName, object routeValues, object value) 815public IActionResult AcceptedAtRoute_Action(string routeName, object routeValues, object value) 820public IActionResult HttpBadRequest_Action() 825public IActionResult HttpBadRequestObject_Action(object error) 830public IActionResult HttpNotFound_Action() 835public IActionResult HttpNotFoundObject_Action(object value)
Filters\AntiforgeryApplicationModelProviderTest.cs (9)
179public IActionResult WithAntiforgeryMetadata() => null; 183public IActionResult WithMvcAttribute() => null; 186public IActionResult NoAttributes() => null; 193public IActionResult Post() => null; 204public IActionResult Post() => null; 216public IActionResult Post() => null; 226public IActionResult Post() => null; 235public IActionResult Post() => null; 239public IActionResult Post2() => null;
Filters\SaveTempDataFilterTest.cs (8)
16public static TheoryData<IActionResult> ActionResultsData 20return new TheoryData<IActionResult>() 142public async Task OnResultExecuting_SavesTempData_WhenTempData_NotSavedAlready(IActionResult result) 222public void OnResultExecuted_SavesTempData_WhenResponseHas_NotStarted(IActionResult result) 310private ResultExecutedContext GetResultExecutedContext(HttpContext httpContext = null, IActionResult actionResult = null) 327private ResultExecutingContext GetResultExecutingContext(ActionContext actionContext, IActionResult actionResult = null) 340private ResultExecutingContext GetResultExecutingContext(HttpContext httpContext = null, IActionResult actionResult = null) 353new Mock<IActionResult>().Object,
Mvc.Api.Analyzers.Test (114)
TestFiles\ActualApiResponseMetadataFactoryTest\InspectReturnExpressionTests.cs (11)
15public IActionResult InspectReturnExpression_ReturnsStatusCodeFromDefaultStatusCodeAttributeOnActionResult() 20public IActionResult InspectReturnExpression_ReturnsStatusCodeFromStatusCodePropertyAssignment() 25public IActionResult InspectReturnExpression_ReturnsStatusCodeFromConstructorAssignment() 30public IActionResult InspectReturnExpression_ReturnsStatusCodeFromHelperMethod() 35public IActionResult InspectReturnExpression_UsesExplicitlySpecifiedStatusCode_ForActionResultWithDefaultStatusCode() 43public IActionResult InspectReturnExpression_ReadsStatusCodeConstant() 48public IActionResult InspectReturnExpression_DoesNotReadLocalFieldWithConstantValue() 54public IActionResult InspectReturnExpression_FallsBackToDefaultStatusCode_WhenAppliedStatusCodeCannotBeRead() 60public IActionResult InspectReturnExpression_SetsReturnType_WhenLiteralTypeIsSpecifiedInConstructor() 65public IActionResult InspectReturnExpression_SetsReturnType_WhenLocalValueIsSpecifiedInConstructor() 71public IActionResult InspectReturnExpression_ReturnsNullReturnType_IfValueIsNotSpecified()
TestFiles\ActualApiResponseMetadataFactoryTest\InspectReturnExpressionTestsForSwitchExpression.cs (11)
18public IActionResult InspectReturnExpression_ReturnsStatusCodeFromDefaultStatusCodeAttributeOnActionResult() 26public IActionResult InspectReturnExpression_ReturnsStatusCodeFromStatusCodePropertyAssignment() 34public IActionResult InspectReturnExpression_ReturnsStatusCodeFromConstructorAssignment() 42public IActionResult InspectReturnExpression_ReturnsStatusCodeFromHelperMethod() 50public IActionResult InspectReturnExpression_UsesExplicitlySpecifiedStatusCode_ForActionResultWithDefaultStatusCode() 61public IActionResult InspectReturnExpression_ReadsStatusCodeConstant() 69public IActionResult InspectReturnExpression_DoesNotReadLocalFieldWithConstantValue() 79public IActionResult InspectReturnExpression_FallsBackToDefaultStatusCode_WhenAppliedStatusCodeCannotBeRead() 89public IActionResult InspectReturnExpression_SetsReturnType_WhenLiteralTypeIsSpecifiedInConstructor() 97public IActionResult InspectReturnExpression_SetsReturnType_WhenLocalValueIsSpecifiedInConstructor() 107public IActionResult InspectReturnExpression_ReturnsNullReturnType_IfValueIsNotSpecified()
TestFiles\ActualApiResponseMetadataFactoryTest\TryGetActualResponseMetadataTests.cs (1)
39public IActionResult ActionWithActionResultOfTReturningOkResultExpression() => Ok();
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsMissingStatusCodes.Input.cs (1)
13public IActionResult GetItem(int id)
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsMissingStatusCodes.Output.cs (1)
16public IActionResult GetItem(int id)
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsMissingStatusCodesAndTypes.Input.cs (1)
13public IActionResult GetItem(int id)
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsMissingStatusCodesAndTypes.Output.cs (1)
16public IActionResult GetItem(int id)
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsNumericLiteralForNonExistingStatusCodeConstants.Input.cs (1)
7public IActionResult GetItem(int id)
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsNumericLiteralForNonExistingStatusCodeConstants.Output.cs (1)
12public IActionResult GetItem(int id)
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsResponseTypeWhenDifferentFromErrorType.Input.cs (1)
8public IActionResult GetItem(int id)
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsResponseTypeWhenDifferentFromErrorType.Output.cs (1)
14public IActionResult GetItem(int id)
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsStatusCodes.Input.cs (1)
7public IActionResult GetItem(int id)
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsStatusCodes.Output.cs (1)
12public IActionResult GetItem(int id)
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsStatusCodesFromConstructorParameters.Input.cs (1)
14public IActionResult GetItem(int id)
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsStatusCodesFromConstructorParameters.Output.cs (1)
20public IActionResult GetItem(int id)
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsStatusCodesFromMethodParameters.Input.cs (1)
14public IActionResult GetItem(int id)
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsStatusCodesFromMethodParameters.Output.cs (1)
20public IActionResult GetItem(int id)
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsStatusCodesFromObjectInitializer.Input.cs (1)
14public IActionResult GetItem(int id)
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsStatusCodesFromObjectInitializer.Output.cs (1)
20public IActionResult GetItem(int id)
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixWorksOnExpressionBodiedMethod.Input.cs (1)
7public IActionResult GetItem() => NotFound();
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixWorksOnExpressionBodiedMethod.Output.cs (1)
11public IActionResult GetItem() => NotFound();
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixWorksWithValidationProblem.Input.cs (1)
12public IActionResult GetProblem()
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixWorksWithValidationProblem.Output.cs (1)
14public IActionResult GetProblem()
TestFiles\ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest\DiagnosticsAreReturned_ForApiActionsWithModelStateChecks.cs (1)
10public IActionResult Method(int id)
TestFiles\ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest\DiagnosticsAreReturned_ForApiActionsWithModelStateChecksUsingEquality.cs (1)
10public IActionResult Method(int id)
TestFiles\ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest\DiagnosticsAreReturned_ForApiActionsWithModelStateChecksWithoutBracing.cs (1)
10public IActionResult Method(int id)
TestFiles\ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest\NoDiagnosticsAreReturned_ForApiActionsCheckingAdditionalConditions.cs (1)
10public IActionResult Method(int id)
TestFiles\ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest\NoDiagnosticsAreReturned_ForApiActionsReturning400FromNonModelStateIsValidBlocks.cs (1)
10public IActionResult Method(int id)
TestFiles\ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest\NoDiagnosticsAreReturned_ForApiActionsReturningNot400FromNonModelStateIsValidBlock.cs (1)
10public IActionResult Method(int id)
TestFiles\ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest\NoDiagnosticsAreReturned_ForApiActionsWithoutModelStateChecks.cs (1)
9public IActionResult Method(int id)
TestFiles\ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest\NoDiagnosticsAreReturned_ForNonApiController.cs (1)
8public IActionResult Method(int id)
TestFiles\ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest\NoDiagnosticsAreReturned_ForRazorPageModels.cs (1)
10public IActionResult OnPost(int id)
TestFiles\ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest\CodeFixRemovesIfBlockWithoutBraces.Input.cs (1)
10public IActionResult Method(int id)
TestFiles\ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest\CodeFixRemovesIfBlockWithoutBraces.Output.cs (1)
10public IActionResult Method(int id)
TestFiles\ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest\CodeFixRemovesModelStateIsInvalidBlockWithEqualityCheck.Input.cs (1)
10public IActionResult Method(int id)
TestFiles\ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest\CodeFixRemovesModelStateIsInvalidBlockWithEqualityCheck.Output.cs (1)
10public IActionResult Method(int id)
TestFiles\ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest\CodeFixRemovesModelStateIsInvalidBlockWithIfNotCheck.Input.cs (1)
10public IActionResult Method(int id)
TestFiles\ApiActionsDoNotRequireExplicitModelValidationCheckCodeFixProviderTest\CodeFixRemovesModelStateIsInvalidBlockWithIfNotCheck.Output.cs (1)
10public IActionResult Method(int id)
TestFiles\ApiControllerFactsTest\IsApiControllerAction_ReturnsTrue_IfAttributeIsDeclaredOnAssembly.cs (1)
12public IActionResult Action() => null;
TestFiles\ApiControllerFactsTest\TestFile.cs (4)
10public IActionResult OnGet() => null; 15public IActionResult Index() => null; 21public IActionResult Index() => null; 27public IActionResult Index() => null;
TestFiles\ApiConventionAnalyzerIntegrationTest\DiagnosticsAreReturned_ForActionResultOfTReturningMethodWithoutSomeAttributes.cs (1)
13public IActionResult Put(int id, object model)
TestFiles\ApiConventionAnalyzerIntegrationTest\DiagnosticsAreReturned_ForControllerWithCustomConvention.cs (1)
16public async Task<IActionResult> Update(int id, Product product)
TestFiles\ApiConventionAnalyzerIntegrationTest\DiagnosticsAreReturned_IfAsyncMethodReturningValueTaskWithProducesResponseTypeAttribute_ReturnsUndocumentedStatusCode.cs (1)
13public async ValueTask<IActionResult> Method(int id)
TestFiles\ApiConventionAnalyzerIntegrationTest\DiagnosticsAreReturned_IfAsyncMethodWithProducesResponseTypeAttribute_ReturnsUndocumentedStatusCode.cs (1)
13public async Task<IActionResult> Method(int id)
TestFiles\ApiConventionAnalyzerIntegrationTest\DiagnosticsAreReturned_IfMethodWithApiConventionMethod_ReturnsUndocumentedStatusCode.cs (1)
14public IActionResult Get(int id)
TestFiles\ApiConventionAnalyzerIntegrationTest\DiagnosticsAreReturned_IfMethodWithConvention_DoesNotReturnDocumentedStatusCode.cs (1)
13public IActionResult /*MM*/Delete(int id)
TestFiles\ApiConventionAnalyzerIntegrationTest\DiagnosticsAreReturned_IfMethodWithConvention_ReturnsUndocumentedStatusCode.cs (1)
14public IActionResult Get(int id)
TestFiles\ApiConventionAnalyzerIntegrationTest\DiagnosticsAreReturned_IfMethodWithProducesResponseTypeAttribute_DoesNotReturnDocumentedStatusCode.cs (1)
14public IActionResult /*MM*/Method(int id)
TestFiles\ApiConventionAnalyzerIntegrationTest\DiagnosticsAreReturned_IfMethodWithProducesResponseTypeAttribute_ReturnsUndocumentedStatusCode.cs (1)
10public IActionResult Method(int id)
TestFiles\ApiConventionAnalyzerIntegrationTest\NoDiagnosticsAreReturned_ForApiController_IfStatusCodesCannotBeInferred.cs (2)
10public IActionResult Method(int id) 12return id == 0 ? (IActionResult)NotFound() : Ok();
TestFiles\ApiConventionAnalyzerIntegrationTest\NoDiagnosticsAreReturned_ForApiController_WhenMethodNeverReturns.cs (1)
12public IActionResult GetItem() => throw new NotImplementedException();
TestFiles\ApiConventionAnalyzerIntegrationTest\NoDiagnosticsAreReturned_ForApiController_WithAllDocumentedStatusCodes.cs (1)
16public IActionResult Put(int id, object model)
TestFiles\ApiConventionAnalyzerIntegrationTest\NoDiagnosticsAreReturned_ForNonApiController.cs (1)
11public IActionResult Method(int id)
TestFiles\ApiConventionAnalyzerIntegrationTest\NoDiagnosticsAreReturned_ForRazorPageModels.cs (1)
12public IActionResult OnPost(int id)
TestFiles\ApiConventionAnalyzerIntegrationTest\NoDiagnosticsAreReturned_ForReturnStatementsInLambdas.cs (2)
16public IActionResult Put(int id, object model) 18Func<IActionResult> someLambda = () =>
TestFiles\ApiConventionAnalyzerIntegrationTest\NoDiagnosticsAreReturned_ForReturnStatementsInLocalFunctions.cs (2)
11public IActionResult Put(int id, object model) 25IActionResult LocalFunction()
TestFiles\MvcFactsTest\IsControllerActionTests.cs (16)
10public abstract IActionResult AbstractMethod(); 12public virtual IActionResult VirtualMethod() => null; 14public virtual IActionResult MethodInBase() => null; 17public virtual IActionResult NonActionBase() => null; 24public override IActionResult AbstractMethod() => null; 26private IActionResult PrivateMethod() => null; 28protected IActionResult ProtectedMethod() => null; 30internal IActionResult InternalMethod() => null; 32public IActionResult GenericMethod<T>() => null; 34public static IActionResult StaticMethod() => null; 37public IActionResult NonAction() => null; 39public override IActionResult NonActionBase() => null; 41public IActionResult Ordinary() => null; 62public IActionResult Dispose() => null; 67public IActionResult Dispose() => null; 74public IActionResult Dispose(int id) => null;
TestFiles\SymbolApiConventionMatcherTest\SymbolApiConventionMatcherTestFile.cs (3)
15public IActionResult Get(int id) => null; 17public IActionResult Search(string searchTerm, bool sortDescending, int page) => null; 19public IActionResult SearchEmpty() => null;
TestFiles\SymbolApiResponseMetadataProviderTest\GetResponseMetadataTests.cs (13)
21public IActionResult ActionWithProducesAttribute(int id) => null; 24public IActionResult ActionWithProducesResponseType_StatusCodeInConstructor() => null; 27public IActionResult ActionWithProducesResponseType_StatusCodeAndTypeInConstructor() => null; 30public IActionResult ActionWithProducesResponseType_StatusCodeInConstructorAndProperty() => null; 33public IActionResult ActionWithProducesResponseType_StatusCodeAndTypeInConstructorAndProperty() => null; 36public IActionResult ActionWithCustomApiResponseMetadataProvider() => null; 39public IActionResult ActionWithCustomProducesResponseTypeAttributeWithoutArguments() => null; 42public IActionResult ActionWithCustomProducesResponseTypeAttributeWithArguments() => null; 45public IActionResult ActionWithProducesResponseTypeWithIncorrectStatusCodeType() => null; 48public IActionResult GetResponseMetadata_ReturnsValuesFromApiConventionMethodAttribute() => null; 52public IActionResult GetResponseMetadata_WithProducesResponseTypeAndApiConventionMethod() => null; 100public IActionResult Post(object model) => null; 110public IActionResult Post(object model) => null;
Mvc.RoutingWebSite (54)
Areas\Admin\UserManagementController.cs (1)
20public IActionResult ListUsers()
Areas\Order\OrderController.cs (1)
20public IActionResult GetOrder()
Areas\Travel\FlightController.cs (2)
19public IActionResult Index() 25public IActionResult BuyTickets()
Areas\Travel\HomeController.cs (2)
18public IActionResult Index() 24public IActionResult About()
Areas\Travel\RailController.cs (2)
19public IActionResult Index() 25public IActionResult Schedule()
Controllers\BlogController.cs (2)
19public IActionResult ShowPosts() 24public IActionResult Edit(int postId)
Controllers\BranchesController.cs (2)
17public IActionResult Index() 23public IActionResult Attribute()
Controllers\ConsumesAttributeController.cs (1)
13public IActionResult Json([FromBody] string json)
Controllers\ContactController.cs (2)
18public IActionResult Index() 23public IActionResult Sso()
Controllers\ConventionalControllerWithMetadata.cs (1)
12public IActionResult GetMetadata()
Controllers\ConventionalTransformerController.cs (2)
17public IActionResult Index() 22public IActionResult Param(string param)
Controllers\DebugController.cs (1)
21public IActionResult Graph()
Controllers\DefaultValuesController.cs (2)
17public IActionResult DefaultParameter(string id) 24public IActionResult OptionalParameter(string id)
Controllers\DynamicOrderController.cs (2)
18public IActionResult Get(string slug) 24public IActionResult Index()
Controllers\EmployeeController.cs (9)
20public IActionResult List() 26public IActionResult UpdateEmployee() 32public IActionResult UpdateManager() 38public IActionResult MergeEmployee(int id) 44public IActionResult Get(int id) 50public IActionResult GetAdministrator(int id) 56public IActionResult GetManager(int id) 62public IActionResult DeleteAdministrator(int id) 68public IActionResult Salary(int id)
Controllers\EndpointRoutingController.cs (3)
19public IActionResult Index() 25public IActionResult ParameterTransformer() 31public IActionResult Get(int id)
Controllers\FriendsController.cs (2)
20public IActionResult Get([FromRoute] string id) 26public IActionResult Delete()
Controllers\HomeController.cs (4)
18public IActionResult Index() 23public IActionResult About() 29public IActionResult Contact() 34public IActionResult OptionalPath(string path = "default")
Controllers\LoginController.cs (2)
18public IActionResult Index() 23public IActionResult Sso()
Controllers\NonParameterConstraintController.cs (1)
17public IActionResult Index()
Controllers\OrderController.cs (3)
19public IActionResult Add(int orderId) 25public IActionResult Add() 31public IActionResult Edit(int orderId)
Controllers\PageRouteController.cs (2)
17public IActionResult ConventionalRoute(string page) 23public IActionResult AttributeRoute(string page)
Controllers\ParameterTransformerController.cs (1)
18public IActionResult MyAction()
Controllers\StoreController.cs (4)
19public IActionResult ListProducts() 26public IActionResult About() 32public IActionResult Orders() 38public IActionResult GetOrders()
MvcFormSample (3)
Controllers\HomeController.cs (3)
19public IActionResult Index([FromQuery] bool antiforgery = true) 25public IActionResult Index2([FromQuery] bool antiforgery = true) 46public IActionResult Error()
MvcSandbox (3)
Controllers\HomeController.cs (1)
13public IActionResult Index()
Controllers\LoginController.cs (1)
11public IActionResult Index()
Pages\PagesHome.cshtml.cs (1)
13public IActionResult OnPost(string name)
Negotiate.Client (20)
Controllers\AuthTestController.cs (20)
29public async Task<IActionResult> AnonymousUnrestricted([FromQuery] string server, [FromQuery] string protocol) 37if (HasWrongStatusCode(StatusCodes.Status200OK, result.StatusCode, body, out var actionResult) 49public async Task<IActionResult> AnonymousAuthorized([FromQuery] string server, [FromQuery] string protocol) 58if (HasWrongStatusCode(StatusCodes.Status401Unauthorized, result.StatusCode, body, out var actionResult) 76public async Task<IActionResult> DefaultCredentialsAuthorized([FromQuery] string server, [FromQuery] string protocol) 86if (HasWrongStatusCode(StatusCodes.Status200OK, result.StatusCode, body, out var actionResult) 99public async Task<IActionResult> AfterAuthUnrestrictedPersist([FromQuery] string server, [FromQuery] string protocol1, [FromQuery] string protocol2) 109if (HasWrongStatusCode(StatusCodes.Status200OK, result.StatusCode, body, out var actionResult) 132public async Task<IActionResult> AfterAuthUnrestrictedNonPersist([FromQuery] string server, [FromQuery] string protocol1, [FromQuery] string protocol2) 142if (HasWrongStatusCode(StatusCodes.Status200OK, result.StatusCode, body, out var actionResult) 165public async Task<IActionResult> AfterAuthAuthorizedNonPersist([FromQuery] string server, [FromQuery] string protocol1, [FromQuery] string protocol2) 175if (HasWrongStatusCode(StatusCodes.Status200OK, result.StatusCode, body, out var actionResult) 198public async Task<IActionResult> Unauthorized([FromQuery] string server, [FromQuery] string protocol) 206if (HasWrongStatusCode(StatusCodes.Status401Unauthorized, result.StatusCode, body, out var actionResult) 224public async Task<IActionResult> AfterAuthUnauthorized([FromQuery] string server, [FromQuery] string protocol) 232if (HasWrongStatusCode(StatusCodes.Status200OK, result.StatusCode, body, out var actionResult) 259private bool HasWrongStatusCode(int expected, HttpStatusCode actual, string body, out IActionResult actionResult) 270private bool HasWrongProtocol(string expected, Version actual, out IActionResult actionResult) 282private bool MissingUser(string body, out IActionResult actionResult) 302private bool HasUser(string body, out IActionResult actionResult)
PathSchemeSelection (7)
Controllers\AccountController.cs (4)
16public IActionResult Login(string returnUrl = null) 29public async Task<IActionResult> Login(string userName, string password, string returnUrl = null) 57public IActionResult AccessDenied(string returnUrl = null) 62public async Task<IActionResult> Logout()
Controllers\HomeController.cs (3)
13public IActionResult Index() 19public IActionResult MyClaims() 24public IActionResult Error()
RazorBuildWebSite (3)
Controllers\UpdateableViewsController.cs (3)
10public IActionResult Index() => View(); 13public IActionResult Update([FromServices] UpdateableFileProvider fileProvider, string path, string content) 20public IActionResult UpdateRazorPages([FromServices] UpdateableFileProvider fileProvider)
RazorPagesWebSite (28)
Areas\Accounts\Controllers\HomeController.cs (1)
11public IActionResult Index() => View();
Controllers\AuthorizedActionController.cs (1)
13public IActionResult Index() => Ok();
Controllers\ClientValidationDisabledController.cs (1)
11public IActionResult ValidationDisabled() => View();
Controllers\RedirectController.cs (1)
11public IActionResult RedirectToPageAction()
ModelAsFilter.cs (1)
19public IActionResult OnGetTestResultFilter() => NotFound();
ModelHandlerTestModel.cs (3)
13public IActionResult OnGet() 18public async Task<IActionResult> OnPostAsync() 37public IActionResult OnGetDefaultValues(
Pages\CustomModelTypeModel.cshtml.cs (2)
46public virtual IActionResult OnPostAsync(string returnUrl = null) 74public override IActionResult OnPostAsync(string returnUrl = null)
Pages\Filters\AuthFilterOnPageWithModel.cs (1)
12public IActionResult OnGet() => Page();
Pages\Filters\FiltersAppliedToPageAndPageModel.cs (1)
12public IActionResult OnGet() => Page();
Pages\HandlerWithParameter.cshtml.cs (1)
11public IActionResult OnGet(string testParameter = null)
Pages\Localized\PageWithModel.cs (1)
11public IActionResult OnGet() => Page();
Pages\ModelWithAuthFilter.cs (1)
13public IActionResult OnGet() => Page();
Pages\PropertyBinding\BindFormFile.cshtml.cs (1)
18public IActionResult OnPost()
Pages\PropertyBinding\PolymorphicBinding.cs (1)
14public IActionResult OnPost()
Pages\Redirects\RedirectFromModel.cs (1)
11public IActionResult OnGet() => RedirectToPage("/Pages/Redirects/Redirect", new { id = 12 });
Pages\ShortCircuitPageAtAuthFilter.cshtml.cs (1)
14public IActionResult OnGet()
Pages\ShortCircuitPageAtPageFilter.cshtml.cs (1)
14public IActionResult OnGet()
Pages\ViewData\ViewDataToViewComponentPage.cs (1)
18public IActionResult OnGet()
Pages\ViewDataAvailableAfterHandlerExecuted.cshtml.cs (1)
13public IActionResult OnGet()
RenderPartial.cshtml.cs (3)
14public IActionResult OnGet() => Partial("_RenderPartial", new RenderPartialModel { Value = $"Hello from {nameof(RenderPartialModel)}" }); 16public IActionResult OnGetUsePageModelAsPartialModel() => Partial("_RenderPartialPageModel", this); 18public IActionResult OnGetNoPartialModel() => Partial("_RenderPartial");
TempData\SetTempDataOnPageModelAndRedirect.cs (1)
11public IActionResult OnGet(string message)
TempData\TempDataPageModel.cs (2)
14public IActionResult OnGet() 19public IActionResult OnPost()
RazorWebSite (61)
Controllers\AddTagHelperComponentController.cs (1)
18public IActionResult AddComponent()
Controllers\BackSlashController.cs (1)
10public IActionResult Index() => View(@"Views\BackSlash\BackSlashView.cshtml");
Controllers\DataAnnotationController.cs (1)
11public IActionResult Enum()
Controllers\DirectivesController.cs (3)
10public IActionResult ViewInheritsInjectAndUsingsFromViewImports() 15public IActionResult ViewInheritsBasePageFromViewImports() 21public IActionResult ViewReplacesTModelTokenFromInheritedBasePages()
Controllers\ExpanderViewsController.cs (2)
11public IActionResult Index() 16public IActionResult Partial()
Controllers\FlushPoint.cs (8)
10public IActionResult PageWithLayout() 15public IActionResult FlushFollowedByLargeContent() => View(); 17public IActionResult FlushInvokedInComponent() => View(); 19public IActionResult PageWithoutLayout() 25public IActionResult PageWithPartialsAndViewComponents() 31public IActionResult PageWithRenderSectionAsync() 36public IActionResult PageWithNestedLayout() 41public IActionResult PageWithFlushBeforeLayout()
Controllers\HtmlHelperOptionsController.cs (2)
10public IActionResult HtmlHelperOptionsDefaultsInView() 30public IActionResult OverrideAppWideDefaultsInView()
Controllers\NestedViewStartsController.cs (1)
10public IActionResult Index()
Controllers\PartialsWithLayoutController.cs (3)
10public IActionResult PartialDoesNotExecuteViewStarts() 18public IActionResult PartialsRenderedViaRenderPartial() 26public IActionResult PartialsRenderedViaPartialAsync()
Controllers\PartialViewEngineController.cs (7)
10public IActionResult ViewWithoutLayout() 15public IActionResult ViewWithFullPath() 20public IActionResult PartialViewWithNamePassedIn() 25public IActionResult ViewWithNestedLayout() 30public IActionResult PartialWithDataFromController() 36public IActionResult PartialWithModel() 46public IActionResult ViewPartialMissingSection()
Controllers\TagHelperComponentController.cs (2)
11public IActionResult GetHead() 16public IActionResult GetBody()
Controllers\TemplateExpander.cs (2)
10public IActionResult Index() 15public IActionResult ViewWithLayout()
Controllers\UrlResolutionController.cs (1)
10public IActionResult Index()
Controllers\ViewEngineController.cs (12)
10public IActionResult ViewWithoutLayout() 15public IActionResult ViewWithFullPath() 20public IActionResult ViewWithRelativePath() 25public IActionResult ViewWithLayout() 30public IActionResult ViewWithNestedLayout() 35public IActionResult ViewWithPartial() 46public IActionResult ViewWithPartialTakingModelFromIEnumerable() 57public IActionResult ViewPassesViewDataToLayout() 63public IActionResult ViewWithDataFromController() 69public IActionResult ViewWithComponentThatHasLayout() 75public IActionResult ViewWithComponentThatHasViewStart() 80public IActionResult SearchInPages() => View();
Controllers\ViewNameSpecification_HomeController.cs (13)
10public IActionResult LayoutSpecifiedWithPartialPathInViewStart() 15public IActionResult LayoutSpecifiedWithPartialPathInViewStart_ForViewSpecifiedWithPartialName() 20public IActionResult LayoutSpecifiedWithPartialPathInViewStart_ForViewSpecifiedWithRelativePath() 25public IActionResult LayoutSpecifiedWithPartialPathInViewStart_ForViewSpecifiedWithAppRelativePath() 30public IActionResult LayoutSpecifiedWithPartialPathInPage() 35public IActionResult LayoutSpecifiedWithPartialPathInPageWithPartialPath() 40public IActionResult LayoutSpecifiedWithPartialPathInPageWithRelativePath() 45public IActionResult LayoutSpecifiedWithPartialPathInPageWithAppRelativePath() 50public IActionResult LayoutSpecifiedWithRelativePath() 56public IActionResult LayoutSpecifiedWithAppRelativePath() 62public IActionResult ViewWithPartial_SpecifiedWithPartialName() 68public IActionResult ViewWithPartial_SpecifiedWithRelativePath() 74public IActionResult ViewWithPartial_SpecifiedWithAppRelativePath()
Controllers\ViewsConsumingCompilationOptionsController.cs (1)
12public IActionResult Index()
Controllers\ViewWithPathsController.cs (1)
11public IActionResult Index()
Sample (1)
Controllers\TestController.cs (1)
22public IActionResult PostForm([FromForm] MvcTodo todo)
SecurityWebSite (25)
Controllers\AdministrationController.cs (4)
16public IActionResult Index() 23public IActionResult EitherCookie() 30public IActionResult AllowAnonymousAction() 36public async Task<IActionResult> SignInCookie2()
Controllers\AntiforgeryController.cs (1)
13public IActionResult Index()
Controllers\AuthorizedActionsController.cs (3)
12public IActionResult ActionWithoutAllowAnonymous() => Ok(); 14public IActionResult ActionWithoutAuthAttribute() => Ok(); 17public IActionResult ActionWithAuthAttribute() => Ok();
Controllers\AuthorizedController.cs (3)
13public IActionResult Api() => Ok(); 15public IActionResult Cookie() => Ok(); 18public IActionResult AllowAnonymous() => Ok();
Controllers\HomeController.cs (5)
11public IActionResult Index() 19public IActionResult AutoAntiforgery() 26public IActionResult Antiforgery() 31public IActionResult Login() 36public IActionResult Logout()
Controllers\IgnoreAntiforgeryController.cs (1)
13public IActionResult Index()
Controllers\LoginController.cs (4)
16public async Task<IActionResult> LoginDefaultScheme() 24public async Task<IActionResult> LoginClaimA() 32public async Task<IActionResult> LoginClaimAB() 39public IActionResult LoginBearerClaimA()
Pages\AllowAnonymousPageViaConvention.cshtml.cs (1)
11public IActionResult OnGet() => Page();
Pages\AllowAnonymousPageViaModel.cshtml.cs (1)
13public IActionResult OnGet() => Page();
Pages\AuthorizePageViaConvention.cshtml.cs (1)
11public IActionResult OnGet() => Page();
Pages\AuthorizePageViaModel.cshtml.cs (1)
13public IActionResult OnGet() => Page();
StaticFilesAuth (6)
Controllers\AccountController.cs (4)
15public IActionResult Login(string returnUrl = null) 28public async Task<IActionResult> Login(string userName, string password, string returnUrl = null) 56public IActionResult AccessDenied(string returnUrl = null) 61public async Task<IActionResult> Logout()
Controllers\HomeController.cs (2)
16public IActionResult Index() 22public IActionResult Error()
TagHelpersWebSite (23)
Controllers\EmployeeController.cs (3)
18public IActionResult Create() 25public IActionResult Create(Employee employee) 35public IActionResult DuplicateAntiforgeryTokenRegistration()
Controllers\EncodersController.cs (5)
10public IActionResult Index() 16public IActionResult CustomEncoder() 22public IActionResult NullEncoder() 30public IActionResult TwoEncoders() 38public IActionResult ThreeEncoders()
Controllers\HomeController.cs (14)
11public IActionResult Index(bool approved = false) 22public IActionResult About() 27public IActionResult GlobbingTagHelpers() 32public IActionResult Help() 37public IActionResult MyHtml() 42public IActionResult ViewComponentTagHelpers() 47public IActionResult UnboundDynamicAttributes() 52public IActionResult NestedViewImportsTagHelper() 57public IActionResult ViewWithLayoutAndNestedTagHelper() 62public IActionResult ViewWithInheritedRemoveTagHelper() 67public IActionResult ViewWithInheritedTagHelperPrefix() 72public IActionResult ViewWithOverriddenTagHelperPrefix() 77public IActionResult ViewWithNestedInheritedTagHelperPrefix() 84public IActionResult ViewWithNestedOverriddenTagHelperPrefix()
Controllers\RemoveDefaultInheritedTagHelpersController.cs (1)
10public IActionResult Index() => View();
VersioningWebSite (39)
Controllers\AddressController.cs (4)
21public IActionResult GetV1() 27public IActionResult GetV2() 33public IActionResult GetAllV1(string version) 41public IActionResult GetAllV2(string version)
Controllers\BooksController.cs (2)
21public IActionResult Get() 27public IActionResult GetBreakingChange()
Controllers\CustomersController.cs (6)
22public IActionResult Get(int id) 29public IActionResult GetV3ToV5(int id) 35public IActionResult AnyV2OrHigher() 41public IActionResult Post() 48public IActionResult AnyV2OrHigherWithId() 54public IActionResult Delete()
Controllers\ItemsController.cs (5)
22public IActionResult Get() 28public IActionResult Get(int id) 34public IActionResult Post() 40public IActionResult Put(int id) 46public IActionResult Delete(int id)
Controllers\ItemsV2Controller.cs (5)
20public IActionResult Get() 26public IActionResult Get(int id) 32public IActionResult Post() 38public IActionResult Put(int id) 44public IActionResult Delete(int id)
Controllers\MoviesController.cs (5)
24public IActionResult Get() 30public IActionResult GetById(int id) 36public IActionResult Post() 42public IActionResult Put(int id) 48public IActionResult Delete(int id)
Controllers\MoviesV2Controller.cs (1)
18public IActionResult Put(int id)
Controllers\PetsController.cs (5)
21public IActionResult Get() 27public IActionResult GetV1(int id) 33public IActionResult GetV2(int id) 39public IActionResult PostV1() 45public IActionResult PostV2()
Controllers\TicketsController.cs (5)
21public IActionResult Get() 27public IActionResult GetById(int id) 33public IActionResult Post() 39public IActionResult Put(int id) 45public IActionResult Delete(int id)
Controllers\VouchersController.cs (1)
20public IActionResult GetVouchersMultipleVersions(string version)
XmlFormattersWebSite (4)
Controllers\HomeController.cs (1)
13public IActionResult Index([FromBody] DummyClass dummyObject)
Controllers\SerializableErrorController.cs (2)
12public IActionResult ModelStateErrors() 38public IActionResult CreateEmployee([FromBody] Employee employee)
Controllers\ValidationController.cs (1)
12public IActionResult CreateStore([FromBody] Store store)