28 instantiations of FromServicesAttribute
ApiExplorerWebSite (1)
Controllers\ApiExplorerReloadableController.cs (1)
17public IActionResult Reload([FromServices] WellKnownChangeToken changeToken)
BasicWebSite (4)
Controllers\ContentNegotiation\FallbackOnTypeBasedMatchController.cs (1)
73[FromServices] IOptions<MvcOptions> optionsAccessor)
Controllers\HomeController.cs (1)
128public IActionResult GetAssemblyPartData([FromServices] ApplicationPartManager applicationPartManager)
Controllers\RequestScopedServiceController.cs (2)
44public 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)
320new FromServicesAttribute()
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (4)
DefaultApiDescriptionProviderTest.cs (3)
2478private void AcceptsFormatters_Services([FromServices] ITestService tempDataProvider, [FromKeyedServices("foo")] ITestService keyedTempDataProvider) 2595[FromServices] 2718[FromServices]
EndpointMetadataApiDescriptionProviderTest.cs (1)
582Assert.Empty(GetApiDescription(([FromServices] InferredServiceClass foo) => { }).ParameterDescriptions);
Microsoft.AspNetCore.Mvc.Core.Test (5)
ApplicationModels\DefaultApplicationModelProviderTest.cs (1)
1774[FromServices]
ModelBinding\Binders\ServicesModelBinderProviderTest.cs (4)
91public void TestMethod([FromServices] IPersonService param1, [FromServices] IPersonService param2 = null) 96public 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)
412Assert.Empty(GetOpenApiOperation(([FromServices] int foo) => { }).Parameters); 892var operation = GetOpenApiOperation(([FromBody] int fromBody, [FromRoute] int fromRoute, [FromServices] int fromServices) => { });
RazorBuildWebSite (2)
Controllers\UpdateableViewsController.cs (2)
13public IActionResult Update([FromServices] UpdateableFileProvider fileProvider, string path, string content) 20public IActionResult UpdateRazorPages([FromServices] UpdateableFileProvider fileProvider)
Stress.ApiService (2)
Program.cs (2)
101app.MapGet("/log-message-limit", async ([FromServices] ILogger<Program> logger) => 119app.MapGet("/log-message", ([FromServices] ILogger<Program> logger) =>
2 references to FromServicesAttribute
Microsoft.AspNetCore.Mvc.Core.Test (2)
ApplicationModels\DefaultApplicationModelProviderTest.cs (2)
102Assert.IsType<FromServicesAttribute>(attribute); 154Assert.IsType<FromServicesAttribute>(attribute);