163 references to TryAddEnumerable
IntegrationTestsWebsite (1)
Startup.cs (1)
25services.TryAddEnumerable(ServiceDescriptor.Singleton<IServiceMethodProvider<DynamicService>, DynamicServiceModelProvider>());
Microsoft.AspNetCore.Antiforgery (1)
AntiforgeryServiceCollectionExtensions.cs (1)
28services.TryAddEnumerable(
Microsoft.AspNetCore.Authentication (2)
AuthenticationBuilder.cs (2)
52Services.TryAddEnumerable(ServiceDescriptor.Singleton<IPostConfigureOptions<TOptions>, PostConfigureAuthenticationSchemeOptions<TOptions>>()); 97Services.TryAddEnumerable(ServiceDescriptor.Singleton<IPostConfigureOptions<TOptions>, EnsureSignInScheme<TOptions>>());
Microsoft.AspNetCore.Authentication.BearerToken (2)
BearerTokenExtensions.cs (2)
68builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<JsonOptions>, BearerTokenConfigureJsonOptions>()); 69builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<BearerTokenOptions>, BearerTokenConfigureOptions>());
Microsoft.AspNetCore.Authentication.Cookies (1)
CookieExtensions.cs (1)
79builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IPostConfigureOptions<CookieAuthenticationOptions>, PostConfigureCookieAuthenticationOptions>());
Microsoft.AspNetCore.Authentication.JwtBearer (2)
JwtBearerExtensions.cs (2)
77builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<JwtBearerOptions>, JwtBearerConfigureOptions>()); 78builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IPostConfigureOptions<JwtBearerOptions>, JwtBearerPostConfigureOptions>());
Microsoft.AspNetCore.Authentication.Negotiate (2)
NegotiateExtensions.cs (2)
71builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IPostConfigureOptions<NegotiateOptions>, PostConfigureNegotiateOptions>()); 72builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IStartupFilter>(new NegotiateOptionsValidationStartupFilter(authenticationScheme)));
Microsoft.AspNetCore.Authentication.OAuth (1)
OAuthExtensions.cs (1)
62builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IPostConfigureOptions<TOptions>, OAuthPostConfigureOptions<TOptions, THandler>>());
Microsoft.AspNetCore.Authentication.OpenIdConnect (2)
OpenIdConnectExtensions.cs (2)
71builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<OpenIdConnectOptions>, OpenIdConnectConfigureOptions>()); 72builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IPostConfigureOptions<OpenIdConnectOptions>, OpenIdConnectPostConfigureOptions>());
Microsoft.AspNetCore.Authentication.Twitter (1)
TwitterExtensions.cs (1)
69builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IPostConfigureOptions<TwitterOptions>, TwitterPostConfigureOptions>());
Microsoft.AspNetCore.Authentication.WsFederation (1)
WsFederationExtensions.cs (1)
53builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IPostConfigureOptions<WsFederationOptions>, WsFederationPostConfigureOptions>());
Microsoft.AspNetCore.Authorization (1)
AuthorizationServiceCollectionExtensions.cs (1)
35services.TryAddEnumerable(ServiceDescriptor.Transient<IAuthorizationHandler, PassThroughAuthorizationHandler>());
Microsoft.AspNetCore.Components (4)
CascadingValueServiceCollectionExtensions.cs (3)
67serviceCollection.TryAddEnumerable( 85serviceCollection.TryAddEnumerable( 106serviceCollection.TryAddEnumerable(
SupplyParameterFromQueryProviderServiceCollectionExtensions.cs (1)
22services.TryAddEnumerable(ServiceDescriptor.Scoped<ICascadingValueSupplier, SupplyParameterFromQueryValueProvider>());
Microsoft.AspNetCore.Components.Endpoints (1)
DependencyInjection\RazorComponentsServiceCollectionExtensions.cs (1)
67services.TryAddEnumerable(
Microsoft.AspNetCore.Components.Endpoints.Tests (2)
HotReloadServiceTests.cs (1)
209services.TryAddEnumerable(ServiceDescriptor.Singleton(typeof(RenderModeEndpointProvider), type));
RazorComponentEndpointDataSourceTest.cs (1)
217services.TryAddEnumerable(ServiceDescriptor.Singleton(typeof(RenderModeEndpointProvider), type));
Microsoft.AspNetCore.Components.Server (4)
DependencyInjection\ComponentServiceCollectionExtensions.cs (3)
58services.TryAddEnumerable(ServiceDescriptor.Singleton<IHubProtocol, BlazorPackHubProtocol>()); 87services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<CircuitOptions>, CircuitOptionsJSInteropDetailedErrorsConfiguration>()); 88services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<CircuitOptions>, CircuitOptionsJavaScriptInitializersConfiguration>());
DependencyInjection\ServerRazorComponentsBuilderExtensions.cs (1)
38builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<RenderModeEndpointProvider, CircuitEndpointProvider>());
Microsoft.AspNetCore.Components.Web (1)
Forms\Mapping\SupplyParameterFromFormServiceCollectionExtensions.cs (1)
21serviceCollection.TryAddEnumerable(ServiceDescriptor.Scoped<ICascadingValueSupplier, SupplyParameterFromFormValueProvider>(services =>
Microsoft.AspNetCore.Components.WebAssembly.Server (2)
WebAssemblyRazorComponentsBuilderExtensions.cs (2)
30builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<RenderModeEndpointProvider, WebAssemblyEndpointProvider>()); 45builder.Services.TryAddEnumerable(ServiceDescriptor.Scoped<IHostEnvironmentAuthenticationStateProvider, AuthenticationStateSerializer>());
Microsoft.AspNetCore.DataProtection (4)
DataProtectionServiceCollectionExtensions.cs (4)
68services.TryAddEnumerable( 70services.TryAddEnumerable( 72services.TryAddEnumerable( 77services.TryAddEnumerable(ServiceDescriptor.Singleton<IHostedService, DataProtectionHostedService>());
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (1)
DatabaseDeveloperPageExceptionFilterServiceExtensions.cs (1)
30services.TryAddEnumerable(new ServiceDescriptor(typeof(IDeveloperPageExceptionFilter), typeof(DatabaseDeveloperPageExceptionFilter), ServiceLifetime.Singleton));
Microsoft.AspNetCore.Grpc.JsonTranscoding (2)
GrpcJsonTranscodingServiceExtensions.cs (2)
28builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton(typeof(IServiceMethodProvider<>), typeof(JsonTranscodingServiceMethodProvider<>))); 29builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<GrpcJsonTranscodingOptions>, GrpcJsonTranscodingOptionsSetup>());
Microsoft.AspNetCore.Grpc.Swagger (1)
GrpcSwaggerServiceExtensions.cs (1)
33services.TryAddEnumerable(ServiceDescriptor.Transient<IApiDescriptionProvider, GrpcJsonTranscodingDescriptionProvider>());
Microsoft.AspNetCore.Http.Connections (1)
ConnectionsDependencyInjectionExtensions.cs (1)
25services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<ConnectionOptions>, ConnectionOptionsSetup>());
Microsoft.AspNetCore.Http.Extensions (2)
ProblemDetailsServiceCollectionExtensions.cs (2)
42services.TryAddEnumerable(ServiceDescriptor.Singleton<IProblemDetailsWriter, DefaultProblemDetailsWriter>()); 44services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<JsonOptions>, ProblemDetailsJsonOptionsSetup>());
Microsoft.AspNetCore.Http.Extensions.Tests (1)
ProblemDetailsServiceCollectionExtensionsTest.cs (1)
56collection.TryAddEnumerable(ServiceDescriptor.Singleton(typeof(IProblemDetailsWriter), mockWriter));
Microsoft.AspNetCore.HttpLogging (1)
HttpLoggingServicesExtensions.cs (1)
54services.TryAddEnumerable(ServiceDescriptor.Singleton<IHttpLoggingInterceptor, T>());
Microsoft.AspNetCore.Identity (3)
IdentityBuilderExtensions.cs (2)
46builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IPostConfigureOptions<SecurityStampValidatorOptions>, PostConfigureSecurityStampValidatorOptions>()); 102builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<JsonOptions>, IdentityEndpointsJsonOptionsSetup>());
IdentityServiceCollectionExtensions.cs (1)
101services.TryAddEnumerable(ServiceDescriptor.Singleton<IPostConfigureOptions<SecurityStampValidatorOptions>, PostConfigureSecurityStampValidatorOptions>());
Microsoft.AspNetCore.MiddlewareAnalysis (1)
AnalysisServiceCollectionExtensions.cs (1)
27services.TryAddEnumerable(ServiceDescriptor.Transient<IStartupFilter, AnalysisStartupFilter>());
Microsoft.AspNetCore.Mvc (2)
MvcServiceCollectionExtensions.cs (2)
145services.TryAddEnumerable( 316services.TryAddEnumerable(
Microsoft.AspNetCore.Mvc.ApiExplorer (2)
DependencyInjection\EndpointMethodInfoApiExplorerServiceCollectionExtensions.cs (1)
26services.TryAddEnumerable(
DependencyInjection\MvcApiExplorerMvcCoreBuilderExtensions.cs (1)
31services.TryAddEnumerable(
Microsoft.AspNetCore.Mvc.Core (17)
DependencyInjection\MvcCoreMvcCoreBuilderExtensions.cs (1)
130services.TryAddEnumerable(
DependencyInjection\MvcCoreServiceCollectionExtensions.cs (16)
134services.TryAddEnumerable( 136services.TryAddEnumerable( 138services.TryAddEnumerable( 140services.TryAddEnumerable( 148services.TryAddEnumerable( 150services.TryAddEnumerable( 152services.TryAddEnumerable( 164services.TryAddEnumerable(ServiceDescriptor.Transient<IActionConstraintProvider, DefaultActionConstraintProvider>()); 167services.TryAddEnumerable(ServiceDescriptor.Singleton<MatcherPolicy, ActionConstraintMatcherPolicy>()); 180services.TryAddEnumerable( 188services.TryAddEnumerable( 193services.TryAddEnumerable( 263services.TryAddEnumerable(ServiceDescriptor.Singleton<MatcherPolicy, DynamicControllerEndpointMatcherPolicy>()); 264services.TryAddEnumerable(ServiceDescriptor.Singleton<IRequestDelegateFactory, ControllerRequestDelegateFactory>()); 273services.TryAddEnumerable(ServiceDescriptor.Singleton<IStartupFilter, MiddlewareFilterBuilderStartupFilter>()); 277services.TryAddEnumerable(ServiceDescriptor.Singleton<IProblemDetailsWriter, DefaultApiProblemDetailsWriter>());
Microsoft.AspNetCore.Mvc.Core.Test (3)
Routing\ControllerLinkGeneratorExtensionsTest.cs (1)
220services.TryAddEnumerable(ServiceDescriptor.Singleton<EndpointDataSource>(new DefaultEndpointDataSource(endpoints)));
Routing\EndpointRoutingUrlHelperTest.cs (1)
286services.TryAddEnumerable(
Routing\PageLinkGeneratorExtensionsTest.cs (1)
190services.TryAddEnumerable(ServiceDescriptor.Singleton<EndpointDataSource>(new DefaultEndpointDataSource(endpoints)));
Microsoft.AspNetCore.Mvc.Cors (1)
DependencyInjection\MvcCorsMvcCoreBuilderExtensions.cs (1)
70services.TryAddEnumerable(
Microsoft.AspNetCore.Mvc.DataAnnotations (2)
DataAnnotationsLocalizationServices.cs (1)
24services.TryAddEnumerable(
DependencyInjection\MvcDataAnnotationsMvcCoreBuilderExtensions.cs (1)
61services.TryAddEnumerable(
Microsoft.AspNetCore.Mvc.Formatters.Xml (4)
DependencyInjection\MvcXmlMvcBuilderExtensions.cs (2)
96services.TryAddEnumerable( 103services.TryAddEnumerable(
DependencyInjection\MvcXmlMvcCoreBuilderExtensions.cs (2)
97services.TryAddEnumerable( 104services.TryAddEnumerable(
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
Infrastructure\MvcWebApplicationBuilderExtensions.cs (1)
34services.TryAddEnumerable(ServiceDescriptor.Singleton<IStartupFilter, CultureReplacerStartupFilter>());
Microsoft.AspNetCore.Mvc.NewtonsoftJson (2)
DependencyInjection\NewtonsoftJsonMvcCoreBuilderExtensions.cs (2)
59services.TryAddEnumerable( 61services.TryAddEnumerable(
Microsoft.AspNetCore.Mvc.Razor (2)
DependencyInjection\MvcRazorMvcCoreBuilderExtensions.cs (2)
125services.TryAddEnumerable( 128services.TryAddEnumerable(
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (5)
DependencyInjection\RazorRuntimeCompilationMvcCoreBuilderExtensions.cs (5)
57services.TryAddEnumerable( 85services.TryAddEnumerable( 87services.TryAddEnumerable(ServiceDescriptor.Singleton<MatcherPolicy, PageLoaderMatcherPolicy>()); 119services.TryAddEnumerable( 122services.TryAddEnumerable(
Microsoft.AspNetCore.Mvc.RazorPages (14)
DependencyInjection\MvcRazorPagesMvcCoreBuilderExtensions.cs (14)
82services.TryAddEnumerable( 85services.TryAddEnumerable( 89services.TryAddEnumerable(ServiceDescriptor.Singleton<MatcherPolicy, DynamicPageEndpointMatcherPolicy>()); 104services.TryAddEnumerable( 107services.TryAddEnumerable( 110services.TryAddEnumerable(ServiceDescriptor.Singleton<MatcherPolicy, DynamicPageEndpointMatcherPolicy>()); 112services.TryAddEnumerable( 114services.TryAddEnumerable( 116services.TryAddEnumerable( 118services.TryAddEnumerable( 120services.TryAddEnumerable( 122services.TryAddEnumerable( 127services.TryAddEnumerable( 129services.TryAddEnumerable(
Microsoft.AspNetCore.Mvc.ViewFeatures (6)
DependencyInjection\MvcViewFeaturesMvcCoreBuilderExtensions.cs (6)
136services.TryAddEnumerable( 138services.TryAddEnumerable( 149services.TryAddEnumerable( 187services.TryAddEnumerable( 189services.TryAddEnumerable( 203services.TryAddEnumerable(
Microsoft.AspNetCore.OpenApi (1)
Extensions\OpenApiServiceCollectionExtensions.cs (1)
75services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<JsonOptions>, OpenApiSchemaJsonOptions>());
Microsoft.AspNetCore.Routing (7)
DependencyInjection\RoutingServiceCollectionExtensions.cs (7)
31services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<RouteOptions>, RegexInlineRouteConstraintSetup>()); 71services.TryAddEnumerable(ServiceDescriptor.Transient<IConfigureOptions<RouteOptions>, ConfigureRouteOptions>( 105services.TryAddEnumerable(ServiceDescriptor.Singleton<MatcherPolicy, HttpMethodMatcherPolicy>()); 106services.TryAddEnumerable(ServiceDescriptor.Singleton<MatcherPolicy, HostMatcherPolicy>()); 107services.TryAddEnumerable(ServiceDescriptor.Singleton<MatcherPolicy, AcceptsMatcherPolicy>()); 108services.TryAddEnumerable(ServiceDescriptor.Singleton<MatcherPolicy, ContentEncodingNegotiationMatcherPolicy>()); 118services.TryAddEnumerable(ServiceDescriptor.Transient<IConfigureOptions<RouteHandlerOptions>, ConfigureRouteHandlerOptions>());
Microsoft.AspNetCore.Routing.Microbenchmarks (1)
EndpointRoutingBenchmarkBase.cs (1)
34services.TryAddEnumerable(
Microsoft.AspNetCore.Server.Kestrel (2)
WebHostBuilderKestrelExtensions.cs (2)
134services.TryAddEnumerable(ServiceDescriptor.Transient<IConfigureOptions<KestrelServerOptions>, KestrelServerOptionsSetup>()); 170services.TryAddEnumerable(ServiceDescriptor.Transient<IConfigureOptions<KestrelServerOptions>, KestrelServerOptionsSetup>());
Microsoft.AspNetCore.SignalR (1)
SignalRDependencyInjectionExtensions.cs (1)
48services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<HubOptions>, HubOptionsSetup>());
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
VersionStartup.cs (1)
24services.TryAddEnumerable(ServiceDescriptor.Singleton<IHubProtocol>(new VersionedJsonHubProtocol(1000)));
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
HubConnectionReceiveBenchmark.cs (1)
72hubConnectionBuilder.Services.TryAddEnumerable(ServiceDescriptor.Singleton(typeof(IHubProtocol), hubProtocol));
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
JsonProtocolDependencyInjectionExtensions.cs (1)
38builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IHubProtocol, JsonHubProtocol>());
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (1)
MessagePackProtocolDependencyInjectionExtensions.cs (1)
38builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IHubProtocol, MessagePackHubProtocol>());
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (1)
NewtonsoftJsonProtocolDependencyInjectionExtensions.cs (1)
38builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IHubProtocol, NewtonsoftJsonHubProtocol>());
Microsoft.AspNetCore.SignalR.Tests (2)
AddSignalRTests.cs (2)
178serviceCollection.TryAddEnumerable(ServiceDescriptor.Singleton<IHubProtocol, CustomHubProtocol>()); 179serviceCollection.TryAddEnumerable(ServiceDescriptor.Singleton<IHubProtocol, MessagePackHubProtocol>());
Microsoft.AspNetCore.SpaProxy (1)
SpaHostingStartup.cs (1)
29services.TryAddEnumerable(ServiceDescriptor.Singleton<IStartupFilter, SpaProxyStartupFilter>());
Microsoft.Authentication.WebAssembly.Msal (1)
MsalWebAssemblyServiceCollectionExtensions.cs (1)
61services.TryAddEnumerable(ServiceDescriptor.Scoped<IPostConfigureOptions<RemoteAuthenticationOptions<MsalProviderOptions>>, MsalDefaultOptionsConfiguration>());
Microsoft.Extensions.DependencyInjection.Abstractions (5)
Extensions\ServiceCollectionDescriptorExtensions.cs (5)
443/// Use <see cref="TryAddEnumerable(IServiceCollection, ServiceDescriptor)"/> when registering a service implementation of a 449/// <see cref="TryAddEnumerable(IServiceCollection, ServiceDescriptor)"/> will prevent registration 495/// Use <see cref="TryAddEnumerable(IServiceCollection, ServiceDescriptor)"/> when registering a service 501/// <see cref="TryAddEnumerable(IServiceCollection, ServiceDescriptor)"/> will prevent registration 513services.TryAddEnumerable(d);
Microsoft.Extensions.Diagnostics.Abstractions (2)
Metrics\MetricsBuilderExtensions.Listeners.cs (2)
25builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IMetricsListener, T>()); 38builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton(listener));
Microsoft.Extensions.Diagnostics.HealthChecks (1)
DependencyInjection\HealthCheckServiceCollectionExtensions.cs (1)
29services.TryAddEnumerable(ServiceDescriptor.Singleton<IHostedService, HealthCheckPublisherHostedService>());
Microsoft.Extensions.Hosting.Abstractions (2)
ServiceCollectionHostedServiceExtensions.cs (2)
25services.TryAddEnumerable(ServiceDescriptor.Singleton<IHostedService, THostedService>()); 40services.TryAddEnumerable(ServiceDescriptor.Singleton<IHostedService>(implementationFactory));
Microsoft.Extensions.Http (2)
DependencyInjection\HttpClientFactoryServiceCollectionExtensions.cs (2)
53services.TryAddEnumerable(ServiceDescriptor.Singleton<IHttpMessageHandlerBuilderFilter, LoggingHttpMessageHandlerBuilderFilter>()); 55services.TryAddEnumerable(ServiceDescriptor.Singleton<IHttpMessageHandlerBuilderFilter, MetricsFactoryHttpMessageHandlerFilter>());
Microsoft.Extensions.Http.Polly (3)
DependencyInjection\PollyServiceCollectionExtensions.cs (3)
39services.TryAddEnumerable(ServiceDescriptor.Singleton<IPolicyRegistry<string>>(registry)); 40services.TryAddEnumerable(ServiceDescriptor.Singleton<IReadOnlyPolicyRegistry<string>>(registry)); 44services.TryAddEnumerable(ServiceDescriptor.Singleton<IConcurrentPolicyRegistry<string>>(concurrentRegistry));
Microsoft.Extensions.Logging (1)
LoggingServiceCollectionExtensions.cs (1)
41services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<LoggerFilterOptions>>(
Microsoft.Extensions.Logging.AzureAppServices (1)
AzureAppServicesLoggerFactoryExtensions.cs (1)
93collection.TryAddEnumerable(descriptor);
Microsoft.Extensions.Logging.Configuration (2)
LoggerProviderConfigurationExtensions.cs (2)
29services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<TOptions>, LoggerProviderConfigureOptions<TOptions, TProvider>>()); 30services.TryAddEnumerable(ServiceDescriptor.Singleton<IOptionsChangeTokenSource<TOptions>, LoggerProviderOptionsChangeTokenSource<TOptions, TProvider>>());
Microsoft.Extensions.Logging.Console (6)
ConsoleLoggerExtensions.cs (6)
38builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<ILoggerProvider, ConsoleLoggerProvider>()); 40builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<ConsoleLoggerOptions>, ConsoleLoggerConfigureOptions>()); 41builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IOptionsChangeTokenSource<ConsoleLoggerOptions>, LoggerProviderOptionsChangeTokenSource<ConsoleLoggerOptions, ConsoleLoggerProvider>>()); 164builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<ConsoleFormatter, TFormatter>()); 165builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<TOptions>, TConfigureOptions>()); 166builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IOptionsChangeTokenSource<TOptions>, ConsoleLoggerFormatterOptionsChangeTokenSource<TFormatter, TOptions>>());
Microsoft.Extensions.Logging.Debug (1)
DebugLoggerFactoryExtensions.cs (1)
53builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<ILoggerProvider, DebugLoggerProvider>());
Microsoft.Extensions.Logging.EventLog (2)
EventLoggerFactoryExtensions.cs (2)
60builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<ILoggerProvider, EventLogLoggerProvider>()); 76builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<ILoggerProvider>(new EventLogLoggerProvider(settings)));
Microsoft.Extensions.Logging.EventSource (3)
EventSourceLoggerFactoryExtensions.cs (3)
44builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<ILoggerProvider, EventSourceLoggerProvider>()); 45builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<LoggerFilterOptions>, EventLogFiltersConfigureOptions>()); 46builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IOptionsChangeTokenSource<LoggerFilterOptions>, EventLogFiltersConfigureOptionsChangeSource>());
Microsoft.Extensions.Options (1)
OptionsServiceCollectionExtensions.cs (1)
72services.AddOptions().TryAddEnumerable(ServiceDescriptor.Singleton<IValidateOptions<TOptions>, TValidateOptions>());
Mvc.RoutingWebSite (1)
StartupWithoutEndpointRouting.cs (1)
86services.TryAddEnumerable(ServiceDescriptor.Singleton<IActionDescriptorProvider>(actionDescriptorProvider));