24 references to FromKeyedServices
AzureKusto.Worker (2)
IngestionWorker.cs (1)
21[FromKeyedServices("kusto-resilience")] ResiliencePipeline pipeline,
QueryWorker.cs (1)
20[FromKeyedServices("kusto-resilience")] ResiliencePipeline pipeline,
AzureStorageEndToEnd.ApiService (2)
Program.cs (2)
21app.MapGet("/", async (BlobServiceClient bsc, [FromKeyedServices("myqueue")] QueueClient queue, [FromKeyedServices("foocontainer")] BlobContainerClient keyedContainerClient1) =>
AzureVirtualNetworkEndToEnd.ApiService (1)
Program.cs (1)
22app.MapGet("/", async (BlobContainerClient containerClient, [FromKeyedServices("myqueue")] QueueClient queue) =>
CosmosEndToEnd.ApiService (3)
Program.cs (3)
50app.MapGet("/", async ([FromKeyedServices("entries")] Container container) => 56app.MapGet("/users", async ([FromKeyedServices("users")] Container container) => 62app.MapGet("/user-todo", async ([FromKeyedServices("user-todo")] Container container) =>
Microsoft.Extensions.AI.Tests (3)
Functions\AIFunctionFactoryTest.cs (3)
597AIFunction f = AIFunctionFactory.Create(([FromKeyedServices("key")] MyService service, int myInteger) => service.Value + myInteger, 620AIFunction f = AIFunctionFactory.Create(([FromKeyedServices(null!)] MyService service, int myInteger) => service.Value + myInteger, 643AIFunction f = AIFunctionFactory.Create(([FromKeyedServices("key")] MyService? service = null, int myInteger = 0) =>
MySql.ApiService (1)
Program.cs (1)
67app.MapGet("/myTestDb2", async ([FromKeyedServices("myTestDb2")] MySqlConnection db) =>
ProxylessEndToEnd.ApiService (1)
Program.cs (1)
20app.MapGet("/redis", ([FromKeyedServices("redis")] IConnectionMultiplexer redis) =>
Redis.ApiService (6)
Program.cs (6)
31app.MapGet("/garnet/ping", async ([FromKeyedServices("garnet")] IConnectionMultiplexer connection) => 36app.MapGet("/garnet/set", async ([FromKeyedServices("garnet")] IConnectionMultiplexer connection) => 41app.MapGet("/garnet/get", async ([FromKeyedServices("garnet")] IConnectionMultiplexer connection) => 47app.MapGet("/valkey/ping", async ([FromKeyedServices("valkey")] IConnectionMultiplexer connection) => 52app.MapGet("/valkey/set", async ([FromKeyedServices("valkey")] IConnectionMultiplexer connection) => 57app.MapGet("/valkey/get", async ([FromKeyedServices("valkey")] IConnectionMultiplexer connection) =>
TestProject.IntegrationServiceA (1)
Redis\RedisExtensions.cs (1)
13private static async Task<IResult> VerifyRedisAsync([FromKeyedServices("redis")] IConnectionMultiplexer cm)
WebPubSubWeb (4)
Program.cs (4)
34app.MapGet("/negotiate/chat", ([FromKeyedServices(Constants.ChatHubName)] WebPubSubServiceClient service) => 43app.MapGet("/negotiate/notification", ([FromKeyedServices(Constants.NotificationHubName)] WebPubSubServiceClient service) => 53app.Map($"/eventhandler/{Constants.ChatHubName}", async ([FromKeyedServices(Constants.ChatHubName)] WebPubSubServiceClient service, HttpContext context, ILogger logger) => 78sealed class NotificationService([FromKeyedServices(Constants.NotificationHubName)] WebPubSubServiceClient service) : BackgroundService