90 references to DefaultName
Aspire.Microsoft.Data.SqlClient (1)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\TracerProviderBuilderExtensions.cs (1)
64
name ??= Options.
DefaultName
;
Aspire.Microsoft.EntityFrameworkCore.SqlServer (1)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\TracerProviderBuilderExtensions.cs (1)
64
name ??= Options.
DefaultName
;
Aspire.OpenAI (1)
AspireOpenAIExtensions.cs (1)
85
var optionsName = serviceKey is null ? Options.Options.
DefaultName
: connectionName;
Aspire.StackExchange.Redis (3)
AspireRedisExtensions.cs (1)
84
var 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)
104
name ??= Options.
DefaultName
;
Cookies (1)
ConfigureMyCookie.cs (1)
26
=> Configure(Options.
DefaultName
, options);
Microsoft.AspNetCore.Authentication.JwtBearer (1)
JwtBearerConfigureOptions.cs (1)
96
Configure(Options.
DefaultName
, options);
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
OpenIdConnectConfigureOptions.cs (1)
126
Configure(Options.
DefaultName
, options);
Microsoft.AspNetCore.DataProtection (1)
Internal\KeyManagementOptionsPostSetup.cs (1)
64
if (name != Options.
DefaultName
)
Microsoft.AspNetCore.DataProtection.Tests (7)
Internal\KeyManagementOptionsPostSetupTest.cs (7)
31
setup.PostConfigure(Options.
DefaultName
, options);
48
setup.PostConfigure(Options.
DefaultName
+ 1, options);
67
setup.PostConfigure(Options.
DefaultName
, options);
92
setup.PostConfigure(Options.
DefaultName
, options);
119
setup.PostConfigure(Options.
DefaultName
, options);
135
setup.PostConfigure(Options.
DefaultName
, options);
149
setup.PostConfigure(Options.
DefaultName
, options);
Microsoft.AspNetCore.Mvc.Core.Test (3)
Infrastructure\ConfigureCompatibilityOptionsTest.cs (3)
24
configure.PostConfigure(Options.
DefaultName
, options);
47
configure.PostConfigure(Options.
DefaultName
, options);
67
configure.PostConfigure(Options.
DefaultName
, options);
Microsoft.Authentication.WebAssembly.Msal (1)
MsalDefaultOptionsConfiguration.cs (1)
46
if (string.Equals(name, Options.
DefaultName
, StringComparison.Ordinal))
Microsoft.Extensions.Diagnostics.Probes (1)
TcpEndpointProbesExtensions.cs (1)
30
return 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)
22
return factory.CreateClient(Options.
DefaultName
);
HttpMessageHandlerFactoryExtensions.cs (1)
22
return factory.CreateHandler(Options.
DefaultName
);
Microsoft.Extensions.Logging.Console (1)
ConsoleLoggerExtensions.Obsolete.cs (1)
139
string 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
"/>.
55
public void Configure(TOptions options) => Configure(Options.
DefaultName
, options);
112
/// Configures a <typeparamref name="TOptions"/> instance with the <see cref="Options.
DefaultName
"/>.
115
public void Configure(TOptions options) => Configure(Options.
DefaultName
, options);
181
/// Configures a <typeparamref name="TOptions"/> instance with the <see cref="Options.
DefaultName
"/>.
184
public void Configure(TOptions options) => Configure(Options.
DefaultName
, options);
259
/// Configures a <typeparamref name="TOptions"/> instance with the <see cref="Options.
DefaultName
"/>.
262
public void Configure(TOptions options) => Configure(Options.
DefaultName
, options);
346
/// Configures a <typeparamref name="TOptions"/> instance with the <see cref="Options.
DefaultName
"/>.
349
public void Configure(TOptions options) => Configure(Options.
DefaultName
, options);
442
/// Configures a <typeparamref name="TOptions"/> instance with the <see cref="Options.
DefaultName
"/>.
445
public 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>
37
Name = name ?? Options.
DefaultName
;
OptionsCache.cs (6)
35
name ??= Options.
DefaultName
;
62
return GetOrAdd(name, () => localCreateOptions(localName ?? Options.
DefaultName
, localFactoryArgument));
67
name ?? Options.
DefaultName
,
80
if (_cache.TryGetValue(name ?? Options.
DefaultName
, out Lazy<TOptions>? lazy))
100
return _cache.TryAdd(name ?? Options.
DefaultName
, new Lazy<TOptions>(
113
_cache.TryRemove(name ?? Options.
DefaultName
, out _);
OptionsFactory.cs (1)
64
else if (name == Options.
DefaultName
)
OptionsManager.cs (3)
33
public 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>
44
name ??= Options.
DefaultName
;
OptionsMonitor.cs (4)
66
name ??= Options.
DefaultName
;
79
get => 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>
94
string localName = name ?? Options.
DefaultName
;
OptionsServiceCollectionExtensions.cs (5)
50
return new OptionsBuilder<TOptions>(services, name ?? Options.Options.
DefaultName
).ValidateOnStart();
73
return 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
"/>.
109
public void PostConfigure(TOptions options) => PostConfigure(Options.
DefaultName
, options);
175
/// Configures a <typeparamref name="TOptions"/> instance using the <see cref="Options.
DefaultName
"/>.
178
public void PostConfigure(TOptions options) => PostConfigure(Options.
DefaultName
, options);
253
/// Configures a <typeparamref name="TOptions"/> instance using the <see cref="Options.
DefaultName
"/>.
256
public void PostConfigure(TOptions options) => PostConfigure(Options.
DefaultName
, options);
340
/// Configures a <typeparamref name="TOptions"/> instance using the <see cref="Options.
DefaultName
"/>.
343
public void PostConfigure(TOptions options) => PostConfigure(Options.
DefaultName
, options);
436
/// Configures a <typeparamref name="TOptions"/> instance using the <see cref="Options.
DefaultName
"/>.
439
public void PostConfigure(TOptions options) => PostConfigure(Options.
DefaultName
, options);
UnnamedOptionsManager.cs (1)
30
return _value ??= _factory.Create(Options.
DefaultName
);
Microsoft.Extensions.Options.ConfigurationExtensions (4)
ConfigurationChangeTokenSource.cs (2)
23
public ConfigurationChangeTokenSource(IConfiguration config) : this(Options.
DefaultName
, config)
37
Name = 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)
68
else if (name == Options.
DefaultName
)
Microsoft.Extensions.Options.Contextual.Tests (1)
ContextualOptionsFactoryTests.cs (1)
157
Assert.Equal(new[] { "pre configure" }, await sut.CreateAsync(Options.
DefaultName
, Mock.Of<IOptionsContext>(), default));