28 instantiations of FromServicesAttribute
ApiExplorerWebSite (1)
Controllers\ApiExplorerReloadableController.cs (1)
17
public IActionResult Reload([
FromServices
] WellKnownChangeToken changeToken)
BasicWebSite (4)
Controllers\ContentNegotiation\FallbackOnTypeBasedMatchController.cs (1)
73
[
FromServices
] IOptions<MvcOptions> optionsAccessor)
Controllers\HomeController.cs (1)
128
public IActionResult GetAssemblyPartData([
FromServices
] ApplicationPartManager applicationPartManager)
Controllers\RequestScopedServiceController.cs (2)
44
public string FromActionArgument([
FromServices
] RequestIdService requestIdService)
49
[
FromServices
]
HtmlGenerationWebSite (1)
Controllers\Catalog_CacheTagHelperController.cs (1)
77
[
FromServices
] ProductsService productService,
Microsoft.AspNetCore.Mvc.Abstractions.Test (1)
ModelBinding\BindingInfoTest.cs (1)
320
new
FromServicesAttribute
()
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (4)
DefaultApiDescriptionProviderTest.cs (3)
2478
private void AcceptsFormatters_Services([
FromServices
] ITestService tempDataProvider, [FromKeyedServices("foo")] ITestService keyedTempDataProvider)
2595
[
FromServices
]
2718
[
FromServices
]
EndpointMetadataApiDescriptionProviderTest.cs (1)
582
Assert.Empty(GetApiDescription(([
FromServices
] InferredServiceClass foo) => { }).ParameterDescriptions);
Microsoft.AspNetCore.Mvc.Core.Test (5)
ApplicationModels\DefaultApplicationModelProviderTest.cs (1)
1774
[
FromServices
]
ModelBinding\Binders\ServicesModelBinderProviderTest.cs (4)
91
public void TestMethod([
FromServices
] IPersonService param1, [
FromServices
] IPersonService param2 = null)
96
public void TestMethod2([
FromServices
] IPersonService param1, [
FromServices
] IPersonService? param2)
Microsoft.AspNetCore.Mvc.IntegrationTests (1)
ServicesModelBinderIntegrationTest.cs (1)
335
[
FromServices
]
Microsoft.AspNetCore.Mvc.RazorPages.Test (5)
ApplicationModels\DefaultPageApplicationModelProviderTest.cs (1)
1080
[
FromServices
]
Infrastructure\PageBinderFactoryTest.cs (4)
861
[
FromServices
]
878
[
FromServices
]
910
[
FromServices
]
927
[
FromServices
]
Microsoft.AspNetCore.OpenApi.Tests (2)
Services\OpenApiGeneratorTests.cs (2)
412
Assert.Empty(GetOpenApiOperation(([
FromServices
] int foo) => { }).Parameters);
892
var operation = GetOpenApiOperation(([FromBody] int fromBody, [FromRoute] int fromRoute, [
FromServices
] int fromServices) => { });
RazorBuildWebSite (2)
Controllers\UpdateableViewsController.cs (2)
13
public IActionResult Update([
FromServices
] UpdateableFileProvider fileProvider, string path, string content)
20
public IActionResult UpdateRazorPages([
FromServices
] UpdateableFileProvider fileProvider)
Stress.ApiService (2)
Program.cs (2)
101
app.MapGet("/log-message-limit", async ([
FromServices
] ILogger<Program> logger) =>
119
app.MapGet("/log-message", ([
FromServices
] ILogger<Program> logger) =>
2 references to FromServicesAttribute
Microsoft.AspNetCore.Mvc.Core.Test (2)
ApplicationModels\DefaultApplicationModelProviderTest.cs (2)
102
Assert.IsType<
FromServicesAttribute
>(attribute);
154
Assert.IsType<
FromServicesAttribute
>(attribute);