14 references to GetKeyedService
Aspire.Azure.Messaging.EventHubs (1)
EventProcessorClientComponent.cs (1)
79provider.GetKeyedService<BlobServiceClient>(settings.BlobClientServiceKey) :
Aspire.Components.Common.Tests (2)
ConformanceTests.cs (2)
213: serviceProvider.GetKeyedService<TService>(key); 247Assert.NotNull(host.Services.GetKeyedService<TService>(key));
Aspire.MongoDB.Driver.Tests (2)
AspireMongoDBDriverExtensionsTests.cs (1)
105var mongoDatabase = host.Services.GetKeyedService<IMongoDatabase>(key);
ConformanceTests.cs (1)
120T? Resolve<T>() => key is null ? host.Services.GetService<T>() : host.Services.GetKeyedService<T>(key);
Aspire.MongoDB.Driver.v3.Tests (2)
tests\Aspire.MongoDB.Driver.Tests\AspireMongoDBDriverExtensionsTests.cs (1)
105var mongoDatabase = host.Services.GetKeyedService<IMongoDatabase>(key);
tests\Aspire.MongoDB.Driver.Tests\ConformanceTests.cs (1)
120T? Resolve<T>() => key is null ? host.Services.GetService<T>() : host.Services.GetKeyedService<T>(key);
Aspire.MySqlConnector.Tests (1)
ConformanceTests.cs (1)
123T? Resolve<T>() => key is null ? host.Services.GetService<T>() : host.Services.GetKeyedService<T>(key);
Aspire.Npgsql.Tests (1)
ConformanceTests.cs (1)
125T? Resolve<T>() => key is null ? host.Services.GetService<T>() : host.Services.GetKeyedService<T>(key);
Aspire.StackExchange.Redis (1)
AspireRedisExtensions.cs (1)
212var settings = _serviceProvider.GetKeyedService<RedisSettingsAdapterService>(name);
Microsoft.AspNetCore.OpenApi (1)
Extensions\OpenApiEndpointRouteBuilderExtensions.cs (1)
45var documentService = context.RequestServices.GetKeyedService<OpenApiDocumentService>(lowercasedDocumentName);
Microsoft.AspNetCore.OpenApi.Tests (1)
Transformers\SchemaTransformerTests.cs (1)
117var service = context.ApplicationServices.GetKeyedService<OpenApiDocumentService>(context.DocumentName);
Microsoft.Maui (2)
Hosting\Dispatching\AppHostBuilderExtensions.cs (2)
36 var dispatcher = keyed.GetKeyedService<IDispatcher>(typeof(IApplication)); 50 var dispatcher = keyed.GetKeyedService<IDispatcher>(typeof(IApplication));