21 instantiations of EmptyResult
ApiExplorerWebSite (3)
Controllers\ApiExplorerResponseTypeWithAttributeController.cs (1)
34return new EmptyResult();
Controllers\ApiExplorerResponseTypeWithoutAttributeController.cs (2)
25return new EmptyResult(); 64return Task.FromResult<IActionResult>(new EmptyResult());
BasicWebSite (1)
Controllers\FiltersController.cs (1)
22public IActionResult TraceResult() => new EmptyResult();
ControllersFromServicesClassLibrary (2)
GenericController.cs (1)
13return new EmptyResult();
NestedControllerOwner.cs (1)
15return new EmptyResult();
Microsoft.AspNetCore.Mvc.Core (4)
ControllerBase.cs (1)
211public static EmptyResult Empty { get; } = new();
Infrastructure\ActionMethodExecutor.cs (1)
30public static EmptyResult EmptyResultInstance { get; } = new();
Infrastructure\ResourceInvoker.cs (2)
787_exceptionContext.Result = new EmptyResult(); 1309_result = new EmptyResult();
Microsoft.AspNetCore.Mvc.Core.Test (5)
EmptyResultTests.cs (1)
17var emptyResult = new EmptyResult();
Infrastructure\ActionResultTypeMapperTest.cs (2)
17var expected = new EmptyResult(); 107public IActionResult Convert() => new EmptyResult();
Infrastructure\ClientErrorResultFilterTest.cs (1)
15private static readonly IActionResult Result = new EmptyResult();
Infrastructure\ControllerActionInvokerTest.cs (1)
507c.Result = new EmptyResult();
Microsoft.AspNetCore.Mvc.Core.TestCommon (1)
CommonResourceInvokerTest.cs (1)
699context.Result = new EmptyResult();
Microsoft.AspNetCore.Mvc.RazorPages.Test (5)
Infrastructure\ExecutorFactoryTest.cs (4)
225public IActionResult ActionResultReturningHandler() => new EmptyResult(); 250public Task<IActionResult> GenericTaskHandler() => Task.FromResult<IActionResult>(new EmptyResult()); 270public IActionResult ActionResultReturningHandler() => new EmptyResult(); 295public Task<IActionResult> GenericTaskHandler() => Task.FromResult<IActionResult>(new EmptyResult());
Infrastructure\PageActionInvokerTest.cs (1)
1028c.Result = new EmptyResult();
14 references to EmptyResult
Microsoft.AspNetCore.Mvc.Core (3)
ControllerBase.cs (2)
209/// Gets an instance of <see cref="EmptyResult"/>. 211public static EmptyResult Empty { get; } = new();
Infrastructure\ActionMethodExecutor.cs (1)
30public static EmptyResult EmptyResultInstance { get; } = new();
Microsoft.AspNetCore.Mvc.Core.Test (9)
EmptyResultTests.cs (1)
17var emptyResult = new EmptyResult();
Infrastructure\ActionMethodExecutorTest.cs (3)
35Assert.IsType<EmptyResult>(valueTask.Result); 224Assert.IsType<EmptyResult>(valueTask.Result); 250Assert.IsType<EmptyResult>(valueTask.Result);
Infrastructure\ActionResultTypeMapperTest.cs (2)
17var expected = new EmptyResult(); 55Assert.IsType<EmptyResult>(result);
Infrastructure\ControllerActionInvokerTest.cs (3)
874Assert.IsType<EmptyResult>(result); 1153Assert.IsType<EmptyResult>(result); 1208Assert.IsType<EmptyResult>(result);
Microsoft.AspNetCore.Mvc.RazorPages.Test (2)
Infrastructure\ExecutorFactoryTest.cs (2)
29Assert.IsType<EmptyResult>(actionResult); 138Assert.IsType<EmptyResult>(actionResult);