OptionConfigureExtensionMethods.ConfigureNamedOptionForLogging<TOptions> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Configures a named option to be logged.
public static Microsoft.Extensions.DependencyInjection.IServiceCollection ConfigureNamedOptionForLogging<TOptions> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string name) where TOptions : class;
static member ConfigureNamedOptionForLogging : Microsoft.Extensions.DependencyInjection.IServiceCollection * string -> Microsoft.Extensions.DependencyInjection.IServiceCollection (requires 'Options : null)
<Extension()>
Public Function ConfigureNamedOptionForLogging(Of TOptions As Class) (services As IServiceCollection, name As String) As IServiceCollection
Type Parameters
- TOptions
The option object's type.
Parameters
- services
- IServiceCollection
The services.
- name
- String
The option object's name.
Returns
The IServiceCollection, for chaining with other calls.