1 instantiation of ServiceDiscoveryOptions
Microsoft.Extensions.ServiceDiscovery.Tests (1)
ServiceEndpointResolverTests.cs (1)
39var watcher = new ServiceEndpointWatcher([], NullLogger.Instance, "foo", TimeProvider.System, Options.Options.Create(new ServiceDiscoveryOptions()));
26 references to ServiceDiscoveryOptions
Microsoft.Extensions.ServiceDiscovery (20)
Configuration\ConfigurationServiceEndpointProvider.cs (2)
39IOptions<ServiceDiscoveryOptions> serviceDiscoveryOptions) 44_schemes = ServiceDiscoveryOptions.ApplyAllowedSchemes(query.IncludedSchemes, serviceDiscoveryOptions.Value.AllowedSchemes, serviceDiscoveryOptions.Value.AllowAllSchemes);
Configuration\ConfigurationServiceEndpointProviderFactory.cs (1)
17IOptions<ServiceDiscoveryOptions> serviceDiscoveryOptions,
Http\ResolvingHttpClientHandler.cs (2)
11internal sealed class ResolvingHttpClientHandler(HttpServiceEndpointResolver resolver, IOptions<ServiceDiscoveryOptions> options) : HttpClientHandler 14private readonly ServiceDiscoveryOptions _options = options.Value;
Http\ResolvingHttpDelegatingHandler.cs (4)
15private readonly ServiceDiscoveryOptions _options; 22public ResolvingHttpDelegatingHandler(HttpServiceEndpointResolver resolver, IOptions<ServiceDiscoveryOptions> options) 34public ResolvingHttpDelegatingHandler(HttpServiceEndpointResolver resolver, IOptions<ServiceDiscoveryOptions> options, HttpMessageHandler innerHandler) : base(innerHandler) 61internal static Uri GetUriWithEndpoint(Uri uri, ServiceEndpoint serviceEndpoint, ServiceDiscoveryOptions options)
Http\ServiceDiscoveryHttpMessageHandlerFactory.cs (1)
12IOptions<ServiceDiscoveryOptions> options) : IServiceDiscoveryHttpMessageHandlerFactory
Internal\ServiceDiscoveryOptionsValidator.cs (2)
8internal sealed class ServiceDiscoveryOptionsValidator : IValidateOptions<ServiceDiscoveryOptions> 10public ValidateOptionsResult Validate(string? name, ServiceDiscoveryOptions options)
ServiceDiscoveryHttpClientBuilderExtensions.cs (1)
31var options = services.GetRequiredService<IOptions<ServiceDiscoveryOptions>>();
ServiceDiscoveryServiceCollectionExtensions.cs (3)
39public static IServiceCollection AddServiceDiscovery(this IServiceCollection services, Action<ServiceDiscoveryOptions> configureOptions) 59public static IServiceCollection AddServiceDiscoveryCore(this IServiceCollection services, Action<ServiceDiscoveryOptions> configureOptions) 63services.TryAddTransient<IValidateOptions<ServiceDiscoveryOptions>, ServiceDiscoveryOptionsValidator>();
ServiceEndpointWatcher.cs (2)
21IOptions<ServiceDiscoveryOptions> options) : IAsyncDisposable 28private readonly ServiceDiscoveryOptions _options = options.Value;
ServiceEndpointWatcherFactory.cs (2)
16IOptions<ServiceDiscoveryOptions> options, 24private readonly IOptions<ServiceDiscoveryOptions> _options = options;
Microsoft.Extensions.ServiceDiscovery.Tests (2)
ConfigurationServiceEndpointResolverTests.cs (2)
67.Configure<ServiceDiscoveryOptions>(o => 151.Configure<ServiceDiscoveryOptions>(o =>
Microsoft.Extensions.ServiceDiscovery.Yarp (2)
ServiceDiscoveryDestinationResolver.cs (2)
19internal sealed class ServiceDiscoveryDestinationResolver(ServiceEndpointResolver resolver, IOptions<ServiceDiscoveryOptions> options) : IDestinationResolver 21private readonly ServiceDiscoveryOptions _options = options.Value;
Microsoft.Extensions.ServiceDiscovery.Yarp.Tests (2)
YarpServiceDiscoveryTests.cs (2)
26serviceProvider.GetRequiredService<IOptions<ServiceDiscoveryOptions>>()); 207.Configure<ServiceDiscoveryOptions>(o =>