14 references to Throw
Microsoft.Extensions.Options.Contextual (14)
ContextualOptionsServiceCollectionExtensions.cs (8)
27
_ =
Throw
.IfNull(services).AddOptions();
47
=> services.Configure(Options.Options.DefaultName,
Throw
.IfNull(loadOptions));
67
Throw
.IfNull(loadOptions)));
80
=> services.Configure(Options.Options.DefaultName,
Throw
.IfNull(configure));
100
new ConfigureContextualOptions<TOptions>(
Throw
.IfNull(configure),
Throw
.IfNull(context)))));
114
=> services.Configure(name: null,
Throw
.IfNull(loadOptions));
125
=> services.Configure(name: null,
Throw
.IfNull(configure));
Internal\ConfigureContextualOptions.cs (1)
36
public void Configure(TOptions options) => ConfigureOptions(_context,
Throw
.IfNull(options));
Internal\ContextualOptions.cs (1)
36
=> _factory.CreateAsync(
Throw
.IfNull(name), context, cancellationToken);
Internal\ContextualOptionsFactory.cs (2)
55
_ =
Throw
.IfNull(name);
56
_ =
Throw
.IfNull(context);
Internal\LoadContextualOptions.cs (2)
44
_ =
Throw
.IfNull(name);
45
_ =
Throw
.IfNull(context);