|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Diagnostics.CodeAnalysis;
using Microsoft.Extensions.Options;
namespace Microsoft.Extensions.Logging.Configuration
{
/// <summary>
/// Loads settings for <typeparamref name="TProvider"/> into <typeparamref name="TOptions"/> type.
/// </summary>
internal sealed class LoggerProviderConfigureOptions<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] TOptions, TProvider> : ConfigureFromConfigurationOptions<TOptions> where TOptions : class
{
[RequiresDynamicCode(LoggerProviderOptions.RequiresDynamicCodeMessage)]
[RequiresUnreferencedCode(LoggerProviderOptions.TrimmingRequiresUnreferencedCodeMessage)]
public LoggerProviderConfigureOptions(ILoggerProviderConfiguration<TProvider> providerConfiguration)
: base(providerConfiguration.Configuration)
{
}
}
}
|