Table of Contents

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

serviceProvider IServiceProvider

The service provider.

name string

The name of the settings.

settings IKeyValueSettings

The settings, or null when none exist with that name.

Returns

bool

true when settings were found; otherwise false.