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