90 references to DefaultName
Aspire.Microsoft.Data.SqlClient (1)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\TracerProviderBuilderExtensions.cs (1)
64name ??= Options.DefaultName;
Aspire.Microsoft.EntityFrameworkCore.SqlServer (1)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\TracerProviderBuilderExtensions.cs (1)
64name ??= Options.DefaultName;
Aspire.OpenAI (1)
AspireOpenAIExtensions.cs (1)
85var optionsName = serviceKey is null ? Options.Options.DefaultName : connectionName;
Aspire.StackExchange.Redis (3)
AspireRedisExtensions.cs (1)
84var optionsName = serviceKey is null ? Options.Options.DefaultName : connectionName;
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\StackExchangeRedisInstrumentation.cs (1)
31=> this.AddConnection(Options.DefaultName, connection);
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\TracerProviderBuilderExtensions.cs (1)
104name ??= Options.DefaultName;
Cookies (1)
ConfigureMyCookie.cs (1)
26=> Configure(Options.DefaultName, options);
Microsoft.AspNetCore.Authentication.JwtBearer (1)
JwtBearerConfigureOptions.cs (1)
96Configure(Options.DefaultName, options);
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
OpenIdConnectConfigureOptions.cs (1)
126Configure(Options.DefaultName, options);
Microsoft.AspNetCore.DataProtection (1)
Internal\KeyManagementOptionsPostSetup.cs (1)
64if (name != Options.DefaultName)
Microsoft.AspNetCore.DataProtection.Tests (7)
Internal\KeyManagementOptionsPostSetupTest.cs (7)
31setup.PostConfigure(Options.DefaultName, options); 48setup.PostConfigure(Options.DefaultName + 1, options); 67setup.PostConfigure(Options.DefaultName, options); 92setup.PostConfigure(Options.DefaultName, options); 119setup.PostConfigure(Options.DefaultName, options); 135setup.PostConfigure(Options.DefaultName, options); 149setup.PostConfigure(Options.DefaultName, options);
Microsoft.AspNetCore.Mvc.Core.Test (3)
Infrastructure\ConfigureCompatibilityOptionsTest.cs (3)
24configure.PostConfigure(Options.DefaultName, options); 47configure.PostConfigure(Options.DefaultName, options); 67configure.PostConfigure(Options.DefaultName, options);
Microsoft.Authentication.WebAssembly.Msal (1)
MsalDefaultOptionsConfiguration.cs (1)
46if (string.Equals(name, Options.DefaultName, StringComparison.Ordinal))
Microsoft.Extensions.Diagnostics.Probes (1)
TcpEndpointProbesExtensions.cs (1)
30return services.AddTcpEndpointProbe(Microsoft.Extensions.Options.Options.DefaultName);
Microsoft.Extensions.Http (11)
DependencyInjection\HttpClientFactoryServiceCollectionExtensions.cs (9)
105/// Use <see cref="Options.Options.DefaultName"/> as the name to configure the default client. 132/// Use <see cref="Options.Options.DefaultName"/> as the name to configure the default client. 162/// Use <see cref="Options.Options.DefaultName"/> as the name to configure the default client. 277/// Use <see cref="Options.Options.DefaultName"/> as the name to configure the default client. 320/// Use <see cref="Options.Options.DefaultName"/> as the name to configure the default client. 527/// Use <see cref="Options.Options.DefaultName"/> as the name to configure the default client. 569/// Use <see cref="Options.Options.DefaultName"/> as the name to configure the default client. 615/// Use <see cref="Options.Options.DefaultName"/> as the name to configure the default client. 662/// Use <see cref="Options.Options.DefaultName"/> as the name to configure the default client.
HttpClientFactoryExtensions.cs (1)
22return factory.CreateClient(Options.DefaultName);
HttpMessageHandlerFactoryExtensions.cs (1)
22return factory.CreateHandler(Options.DefaultName);
Microsoft.Extensions.Logging.Console (1)
ConsoleLoggerExtensions.Obsolete.cs (1)
139string IOptionsChangeTokenSource<ConsoleLoggerOptions>.Name => Options.Options.DefaultName;
Microsoft.Extensions.Options (47)
ConfigureNamedOptions.cs (12)
52/// Configures a <typeparamref name="TOptions"/> instance with the <see cref="Options.DefaultName"/>. 55public void Configure(TOptions options) => Configure(Options.DefaultName, options); 112/// Configures a <typeparamref name="TOptions"/> instance with the <see cref="Options.DefaultName"/>. 115public void Configure(TOptions options) => Configure(Options.DefaultName, options); 181/// Configures a <typeparamref name="TOptions"/> instance with the <see cref="Options.DefaultName"/>. 184public void Configure(TOptions options) => Configure(Options.DefaultName, options); 259/// Configures a <typeparamref name="TOptions"/> instance with the <see cref="Options.DefaultName"/>. 262public void Configure(TOptions options) => Configure(Options.DefaultName, options); 346/// Configures a <typeparamref name="TOptions"/> instance with the <see cref="Options.DefaultName"/>. 349public void Configure(TOptions options) => Configure(Options.DefaultName, options); 442/// Configures a <typeparamref name="TOptions"/> instance with the <see cref="Options.DefaultName"/>. 445public void Configure(TOptions options) => Configure(Options.DefaultName, options);
IOptionsMonitor.cs (2)
16/// Gets the current <typeparamref name="TOptions"/> instance with the <see cref="Options.DefaultName"/>. 23/// <param name="name">The name of the <typeparamref name="TOptions"/> instance. If <see langword="null"/>, <see cref="Options.DefaultName"/>, which is the empty string, is used.</param>
IOptionsSnapshot.cs (1)
19/// <param name="name">The name of the <typeparamref name="TOptions"/> instance. If <see langword="null"/>, <see cref="Options.DefaultName"/>, which is the empty string, is used.</param>
OptionsBuilder.cs (2)
31/// <param name="name">The default name of the <typeparamref name="TOptions"/> instance; if <see langword="null"/>, <see cref="Options.DefaultName"/> is used.</param> 37Name = name ?? Options.DefaultName;
OptionsCache.cs (6)
35name ??= Options.DefaultName; 62return GetOrAdd(name, () => localCreateOptions(localName ?? Options.DefaultName, localFactoryArgument)); 67name ?? Options.DefaultName, 80if (_cache.TryGetValue(name ?? Options.DefaultName, out Lazy<TOptions>? lazy)) 100return _cache.TryAdd(name ?? Options.DefaultName, new Lazy<TOptions>( 113_cache.TryRemove(name ?? Options.DefaultName, out _);
OptionsFactory.cs (1)
64else if (name == Options.DefaultName)
OptionsManager.cs (3)
33public TOptions Value => Get(Options.DefaultName); 38/// <param name="name">The name of the <typeparamref name="TOptions"/> instance. If <see langword="null"/>, <see cref="Options.DefaultName"/>, which is the empty string, is used.</param> 44name ??= Options.DefaultName;
OptionsMonitor.cs (4)
66name ??= Options.DefaultName; 79get => Get(Options.DefaultName); 85/// <param name="name">The name of the <typeparamref name="TOptions"/> instance. If <see langword="null"/>, <see cref="Options.DefaultName"/>, which is the empty string, is used.</param> 94string localName = name ?? Options.DefaultName;
OptionsServiceCollectionExtensions.cs (5)
50return new OptionsBuilder<TOptions>(services, name ?? Options.Options.DefaultName).ValidateOnStart(); 73return new OptionsBuilder<TOptions>(services, name ?? Options.Options.DefaultName).ValidateOnStart(); 84=> services.Configure(Options.Options.DefaultName, configureOptions); 125=> services.PostConfigure(Options.Options.DefaultName, configureOptions); 268=> services.AddOptions<TOptions>(Options.Options.DefaultName);
PostConfigureOptions.cs (10)
106/// Configures a <typeparamref name="TOptions"/> instance using the <see cref="Options.DefaultName"/>. 109public void PostConfigure(TOptions options) => PostConfigure(Options.DefaultName, options); 175/// Configures a <typeparamref name="TOptions"/> instance using the <see cref="Options.DefaultName"/>. 178public void PostConfigure(TOptions options) => PostConfigure(Options.DefaultName, options); 253/// Configures a <typeparamref name="TOptions"/> instance using the <see cref="Options.DefaultName"/>. 256public void PostConfigure(TOptions options) => PostConfigure(Options.DefaultName, options); 340/// Configures a <typeparamref name="TOptions"/> instance using the <see cref="Options.DefaultName"/>. 343public void PostConfigure(TOptions options) => PostConfigure(Options.DefaultName, options); 436/// Configures a <typeparamref name="TOptions"/> instance using the <see cref="Options.DefaultName"/>. 439public void PostConfigure(TOptions options) => PostConfigure(Options.DefaultName, options);
UnnamedOptionsManager.cs (1)
30return _value ??= _factory.Create(Options.DefaultName);
Microsoft.Extensions.Options.ConfigurationExtensions (4)
ConfigurationChangeTokenSource.cs (2)
23public ConfigurationChangeTokenSource(IConfiguration config) : this(Options.DefaultName, config) 37Name = name ?? Options.DefaultName;
OptionsConfigurationServiceCollectionExtensions.cs (2)
26=> services.Configure<TOptions>(Options.Options.DefaultName, config); 53=> services.Configure<TOptions>(Options.Options.DefaultName, config, configureBinder);
Microsoft.Extensions.Options.Contextual (4)
ContextualOptionsServiceCollectionExtensions.cs (2)
47=> services.Configure(Options.Options.DefaultName, Throw.IfNull(loadOptions)); 80=> services.Configure(Options.Options.DefaultName, Throw.IfNull(configure));
Internal\ContextualOptions.cs (1)
32=> GetAsync(Options.DefaultName, context, cancellationToken);
Internal\ContextualOptionsFactory.cs (1)
68else if (name == Options.DefaultName)
Microsoft.Extensions.Options.Contextual.Tests (1)
ContextualOptionsFactoryTests.cs (1)
157Assert.Equal(new[] { "pre configure" }, await sut.CreateAsync(Options.DefaultName, Mock.Of<IOptionsContext>(), default));