Class NamedSettingsExtensions
- Namespace
- Arc4u.OAuth2.Extensions
- Assembly
- Arc4u.OAuth2.dll
Resolves settings registered by name.
public static class NamedSettingsExtensions
- Inheritance
-
NamedSettingsExtensions
- Inherited Members
Methods
TryGetNamedSettings(IServiceProvider, string, out IKeyValueSettings?)
Tries to resolve the named SimpleKeyValueSettings options registered with name
(services.Configure<SimpleKeyValueSettings>(name, ...), as all the Arc4u extension methods do).
public static bool TryGetNamedSettings(this IServiceProvider serviceProvider, string name, out IKeyValueSettings? settings)
Parameters
serviceProviderIServiceProviderThe service provider.
namestringThe name of the settings.
settingsIKeyValueSettingsThe settings, or null when none exist with that name.