GetOptionsByName(IServiceProvider, string)
staticextension
public static TOption GetOptionsByName<TOption>(this IServiceProvider services, string name) Gets a named options instance.
Parameters
servicesIServiceProvider- The services.
namestring- The name.
Returns
TOption.
