16 implementations of IActionResultExecutor
Microsoft.AspNetCore.Mvc.Core (12)
Infrastructure\ContentResultExecutor.cs (1)
16public partial class ContentResultExecutor : IActionResultExecutor<ContentResult>
Infrastructure\FileContentResultExecutor.cs (1)
14public partial class FileContentResultExecutor : FileResultExecutorBase, IActionResultExecutor<FileContentResult>
Infrastructure\FileStreamResultExecutor.cs (1)
14public partial class FileStreamResultExecutor : FileResultExecutorBase, IActionResultExecutor<FileStreamResult>
Infrastructure\LocalRedirectResultExecutor.cs (1)
16public partial class LocalRedirectResultExecutor : IActionResultExecutor<LocalRedirectResult>
Infrastructure\ObjectResultExecutor.cs (1)
18public partial class ObjectResultExecutor : IActionResultExecutor<ObjectResult>
Infrastructure\PhysicalFileResultExecutor.cs (1)
14public partial class PhysicalFileResultExecutor : FileResultExecutorBase, IActionResultExecutor<PhysicalFileResult>
Infrastructure\RedirectResultExecutor.cs (1)
13public partial class RedirectResultExecutor : IActionResultExecutor<RedirectResult>
Infrastructure\RedirectToActionResultExecutor.cs (1)
14public partial class RedirectToActionResultExecutor : IActionResultExecutor<RedirectToActionResult>
Infrastructure\RedirectToPageResultExecutor.cs (1)
14public partial class RedirectToPageResultExecutor : IActionResultExecutor<RedirectToPageResult>
Infrastructure\RedirectToRouteResultExecutor.cs (1)
14public partial class RedirectToRouteResultExecutor : IActionResultExecutor<RedirectToRouteResult>
Infrastructure\SystemTextJsonResultExecutor.cs (1)
16internal sealed partial class SystemTextJsonResultExecutor : IActionResultExecutor<JsonResult>
Infrastructure\VirtualFileResultExecutor.cs (1)
16public partial class VirtualFileResultExecutor : FileResultExecutorBase, IActionResultExecutor<VirtualFileResult>
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
NewtonsoftJsonResultExecutor.cs (1)
20internal sealed partial class NewtonsoftJsonResultExecutor : IActionResultExecutor<JsonResult>
Microsoft.AspNetCore.Mvc.ViewFeatures (3)
PartialViewResultExecutor.cs (1)
21public partial class PartialViewResultExecutor : ViewExecutor, IActionResultExecutor<PartialViewResult>
ViewComponentResultExecutor.cs (1)
26public partial class ViewComponentResultExecutor : IActionResultExecutor<ViewComponentResult>
ViewResultExecutor.cs (1)
21public partial class ViewResultExecutor : ViewExecutor, IActionResultExecutor<ViewResult>
133 references to IActionResultExecutor
Microsoft.AspNetCore.Mvc.Core (47)
ContentResult.cs (2)
35var executor = context.HttpContext.RequestServices.GetRequiredService<IActionResultExecutor<ContentResult>>();
DependencyInjection\MvcCoreServiceCollectionExtensions.cs (12)
235services.TryAddSingleton<IActionResultExecutor<ObjectResult>, ObjectResultExecutor>(); 236services.TryAddSingleton<IActionResultExecutor<PhysicalFileResult>, PhysicalFileResultExecutor>(); 237services.TryAddSingleton<IActionResultExecutor<VirtualFileResult>, VirtualFileResultExecutor>(); 238services.TryAddSingleton<IActionResultExecutor<FileStreamResult>, FileStreamResultExecutor>(); 239services.TryAddSingleton<IActionResultExecutor<FileContentResult>, FileContentResultExecutor>(); 240services.TryAddSingleton<IActionResultExecutor<RedirectResult>, RedirectResultExecutor>(); 241services.TryAddSingleton<IActionResultExecutor<LocalRedirectResult>, LocalRedirectResultExecutor>(); 242services.TryAddSingleton<IActionResultExecutor<RedirectToActionResult>, RedirectToActionResultExecutor>(); 243services.TryAddSingleton<IActionResultExecutor<RedirectToRouteResult>, RedirectToRouteResultExecutor>(); 244services.TryAddSingleton<IActionResultExecutor<RedirectToPageResult>, RedirectToPageResultExecutor>(); 245services.TryAddSingleton<IActionResultExecutor<ContentResult>, ContentResultExecutor>(); 246services.TryAddSingleton<IActionResultExecutor<JsonResult>, SystemTextJsonResultExecutor>();
FileContentResult.cs (2)
66var executor = context.HttpContext.RequestServices.GetRequiredService<IActionResultExecutor<FileContentResult>>();
FileStreamResult.cs (2)
67var executor = context.HttpContext.RequestServices.GetRequiredService<IActionResultExecutor<FileStreamResult>>();
Infrastructure\ContentResultExecutor.cs (1)
14/// A <see cref="IActionResultExecutor{ContentResult}"/> that is responsible for <see cref="ContentResult"/>
Infrastructure\FileContentResultExecutor.cs (1)
12/// A <see cref="IActionResultExecutor{FileContentResult}"/>
Infrastructure\FileStreamResultExecutor.cs (1)
12/// An <see cref="IActionResultExecutor{FileStreamResult}"/> for a file stream result.
Infrastructure\IActionResultExecutor.cs (1)
16/// Implementations of <see cref="IActionResultExecutor{TResult}"/> are typically called by the
Infrastructure\LocalRedirectResultExecutor.cs (1)
14/// A <see cref="IActionResultExecutor{LocalRedirectResult}"/> that handles <see cref="LocalRedirectResult"/>.
Infrastructure\PhysicalFileResultExecutor.cs (1)
12/// A <see cref="IActionResultExecutor{PhysicalFileResult}"/> for <see cref="PhysicalFileResult"/>.
Infrastructure\RedirectResultExecutor.cs (1)
11/// A <see cref="IActionResultExecutor{VirtualFileResult}"/> for <see cref="RedirectResult"/>.
Infrastructure\RedirectToActionResultExecutor.cs (1)
12/// A <see cref="IActionResultExecutor{RedirectToActionResult}"/> for <see cref="RedirectToActionResult"/>.
Infrastructure\RedirectToPageResultExecutor.cs (1)
12/// A <see cref="IActionResultExecutor{RedirectToPageResult}"/> for <see cref="RedirectToPageResult"/>.
Infrastructure\RedirectToRouteResultExecutor.cs (1)
12/// A <see cref="IActionResultExecutor{RedirectToRouteResult}"/> for <see cref="RedirectToRouteResult"/>.
Infrastructure\VirtualFileResultExecutor.cs (1)
14/// A <see cref="IActionResultExecutor{VirtualFileResult}"/> for <see cref="VirtualFileResult"/>.
JsonResult.cs (2)
75var executor = services.GetRequiredService<IActionResultExecutor<JsonResult>>();
LocalRedirectResult.cs (2)
91var executor = context.HttpContext.RequestServices.GetRequiredService<IActionResultExecutor<LocalRedirectResult>>();
ObjectResult.cs (2)
62var executor = context.HttpContext.RequestServices.GetRequiredService<IActionResultExecutor<ObjectResult>>();
PhysicalFileResult.cs (2)
58var executor = context.HttpContext.RequestServices.GetRequiredService<IActionResultExecutor<PhysicalFileResult>>();
RedirectResult.cs (2)
93var executor = context.HttpContext.RequestServices.GetRequiredService<IActionResultExecutor<RedirectResult>>();
RedirectToActionResult.cs (2)
171var executor = context.HttpContext.RequestServices.GetRequiredService<IActionResultExecutor<RedirectToActionResult>>();
RedirectToPageResult.cs (2)
209var executor = context.HttpContext.RequestServices.GetRequiredService<IActionResultExecutor<RedirectToPageResult>>();
RedirectToRouteResult.cs (2)
163var executor = context.HttpContext.RequestServices.GetRequiredService<IActionResultExecutor<RedirectToRouteResult>>();
VirtualFileResult.cs (2)
64var executor = context.HttpContext.RequestServices.GetRequiredService<IActionResultExecutor<VirtualFileResult>>();
Microsoft.AspNetCore.Mvc.Core.Test (44)
AcceptedAtActionResultTests.cs (1)
271services.AddSingleton<IActionResultExecutor<ObjectResult>>(new ObjectResultExecutor(
AcceptedAtRouteResultTests.cs (1)
179services.AddSingleton<IActionResultExecutor<ObjectResult>>(new ObjectResultExecutor(
AcceptedResultTests.cs (1)
136services.AddSingleton<IActionResultExecutor<ObjectResult>>(new ObjectResultExecutor(
ContentResultTest.cs (1)
267services.AddSingleton<IActionResultExecutor<ContentResult>>(new ContentResultExecutor(
CreatedAtActionResultTests.cs (1)
91services.AddSingleton<IActionResultExecutor<ObjectResult>>(new ObjectResultExecutor(
CreatedAtRouteResultTests.cs (1)
105services.AddSingleton<IActionResultExecutor<ObjectResult>>(new ObjectResultExecutor(
CreatedResultTests.cs (1)
138services.AddSingleton<IActionResultExecutor<ObjectResult>>(new ObjectResultExecutor(
FileContentResultTest.cs (1)
35.AddSingleton<IActionResultExecutor<FileContentResult>, FileContentResultExecutor>()
FileStreamResultTest.cs (1)
26.AddSingleton<IActionResultExecutor<FileStreamResult>, FileStreamResultExecutor>()
HttpNotFoundObjectResultTest.cs (1)
71services.AddSingleton<IActionResultExecutor<ObjectResult>>(new ObjectResultExecutor(
HttpOkObjectResultTest.cs (1)
73services.AddSingleton<IActionResultExecutor<ObjectResult>>(new ObjectResultExecutor(
Infrastructure\ControllerActionInvokerTest.cs (1)
1710services.AddSingleton<IActionResultExecutor<ObjectResult>>(new ObjectResultExecutor(
Infrastructure\JsonResultExecutorTestBase.cs (22)
31var executor = CreateExecutor(); 52var executor = CreateExecutor(); 76var executor = CreateExecutor(); 96var executor = CreateExecutor(); 120var executor = CreateExecutor(); 142var executor = CreateExecutor(); 167var executor = CreateExecutor(); 191var executor = CreateExecutor(); 210var executor = CreateExecutor(); 239var executor = CreateExecutor(new TestLoggerFactory(sink, enabled: true)); 257var executor = CreateExecutor(new TestLoggerFactory(sink, enabled: true)); 282var executor = CreateExecutor(); 300var executor = CreateExecutor(); 317var executor = CreateExecutor(); 335var executor = CreateExecutor(); 353var executor = CreateExecutor(); 370var executor = CreateExecutor(); 404var executor = CreateExecutor(); 435var executor = CreateExecutor(); 455var executor = CreateExecutor(); 474protected IActionResultExecutor<JsonResult> CreateExecutor() => CreateExecutor(NullLoggerFactory.Instance); 476protected abstract IActionResultExecutor<JsonResult> CreateExecutor(ILoggerFactory loggerFactory);
Infrastructure\SystemTextJsonResultExecutorTest.cs (2)
13protected override IActionResultExecutor<JsonResult> CreateExecutor(ILoggerFactory loggerFactory) 30var executor = CreateExecutor();
LocalRedirectResultTest.cs (1)
139serviceCollection.AddSingleton<IActionResultExecutor<LocalRedirectResult>, LocalRedirectResultExecutor>();
ObjectResultTests.cs (1)
160services.AddSingleton<IActionResultExecutor<ObjectResult>>(new ObjectResultExecutor(
PhysicalFileResultTest.cs (1)
59services.AddSingleton<IActionResultExecutor<PhysicalFileResult>, TestPhysicalFileResultExecutor>();
RedirectResultTest.cs (1)
28serviceCollection.AddSingleton<IActionResultExecutor<RedirectResult>, RedirectResultExecutor>();
RedirectToActionResultTest.cs (1)
150services.AddSingleton<IActionResultExecutor<RedirectToActionResult>, RedirectToActionResultExecutor>();
RedirectToPageResultTest.cs (1)
295services.AddSingleton<IActionResultExecutor<RedirectToPageResult>, RedirectToPageResultExecutor>();
RedirectToRouteResultTest.cs (1)
178services.AddSingleton<IActionResultExecutor<RedirectToRouteResult>, RedirectToRouteResultExecutor>();
VirtualFileResultTest.cs (1)
86.AddTransient<IActionResultExecutor<VirtualFileResult>, VirtualFileResultExecutor>()
Microsoft.AspNetCore.Mvc.NewtonsoftJson (2)
DependencyInjection\NewtonsoftJsonMvcCoreBuilderExtensions.cs (2)
65f.ServiceType == typeof(IActionResultExecutor<JsonResult>) && 72services.TryAddSingleton<IActionResultExecutor<JsonResult>, NewtonsoftJsonResultExecutor>();
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (27)
DependencyInjection\NewtonsoftJsonMvcCoreBuilderExtensionsTest.cs (2)
68.AddSingleton<IActionResultExecutor<JsonResult>, SystemTextJsonResultExecutor>(); 74var jsonResultExecutor = Assert.Single(services, d => d.ServiceType == typeof(IActionResultExecutor<JsonResult>));
JsonResultTest.cs (1)
52services.AddSingleton<IActionResultExecutor<JsonResult>>(executor);
NewtonsoftJsonResultExecutorTest.cs (2)
16protected override IActionResultExecutor<JsonResult> CreateExecutor(ILoggerFactory loggerFactory) 41var executor = CreateExecutor();
src\Mvc\Mvc.Core\test\Infrastructure\JsonResultExecutorTestBase.cs (22)
31var executor = CreateExecutor(); 52var executor = CreateExecutor(); 76var executor = CreateExecutor(); 96var executor = CreateExecutor(); 120var executor = CreateExecutor(); 142var executor = CreateExecutor(); 167var executor = CreateExecutor(); 191var executor = CreateExecutor(); 210var executor = CreateExecutor(); 239var executor = CreateExecutor(new TestLoggerFactory(sink, enabled: true)); 257var executor = CreateExecutor(new TestLoggerFactory(sink, enabled: true)); 282var executor = CreateExecutor(); 300var executor = CreateExecutor(); 317var executor = CreateExecutor(); 335var executor = CreateExecutor(); 353var executor = CreateExecutor(); 370var executor = CreateExecutor(); 404var executor = CreateExecutor(); 435var executor = CreateExecutor(); 455var executor = CreateExecutor(); 474protected IActionResultExecutor<JsonResult> CreateExecutor() => CreateExecutor(NullLoggerFactory.Instance); 476protected abstract IActionResultExecutor<JsonResult> CreateExecutor(ILoggerFactory loggerFactory);
Microsoft.AspNetCore.Mvc.ViewFeatures (10)
DependencyInjection\MvcViewFeaturesMvcCoreBuilderExtensions.cs (3)
145services.TryAddSingleton<IActionResultExecutor<ViewResult>, ViewResultExecutor>(); 146services.TryAddSingleton<IActionResultExecutor<PartialViewResult>, PartialViewResultExecutor>(); 177services.TryAddSingleton<IActionResultExecutor<ViewComponentResult>, ViewComponentResultExecutor>();
PartialViewResult.cs (2)
65var executor = services.GetService<IActionResultExecutor<PartialViewResult>>();
ViewComponentResult.cs (2)
64var executor = services.GetService<IActionResultExecutor<ViewComponentResult>>();
ViewComponentResultExecutor.cs (1)
24/// A <see cref="IActionResultExecutor{ViewComponentResult}"/> for <see cref="ViewComponentResult"/>.
ViewResult.cs (2)
64var executor = context.HttpContext.RequestServices.GetService<IActionResultExecutor<ViewResult>>();
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (3)
PartialViewResultTest.cs (1)
245services.AddSingleton<IActionResultExecutor<PartialViewResult>>(viewExecutor);
ViewComponentResultTest.cs (1)
680services.AddSingleton<IActionResultExecutor<ViewComponentResult>, ViewComponentResultExecutor>();
ViewResultTest.cs (1)
257services.AddSingleton<IActionResultExecutor<ViewResult>>(viewExecutor);