Skip to content

NamedOptionExtensions.GetOptionsByName(IServiceProvider, string)

GetOptionsByName(IServiceProvider, string)

staticextension
View source
public static TOption GetOptionsByName<TOption>(this IServiceProvider services, string name)
Gets a named options instance.

Parameters

servicesIServiceProvider
The services.
namestring
The name.

Returns

TOption.