3 instantiations of ApplicationLogEnricherOptions
Microsoft.Extensions.Telemetry.Tests (3)
Enrichment\ApplicationEnricherOptionsTests.cs (1)
14var options = new ApplicationLogEnricherOptions();
Enrichment\ApplicationLogEnricherTests.cs (2)
34var options = new ApplicationLogEnricherOptions 58var options = new ApplicationLogEnricherOptions
27 references to ApplicationLogEnricherOptions
Microsoft.Extensions.Telemetry (15)
Enrichment\ApplicationEnricherServiceCollectionExtensions.cs (7)
34/// <param name="configure">The <see cref="ApplicationLogEnricherOptions"/> configuration delegate.</param> 41public static IServiceCollection AddServiceLogEnricher(this IServiceCollection services, Action<ApplicationLogEnricherOptions> configure) => 48/// <param name="section">The <see cref="IConfigurationSection"/> to use for configuring <see cref="ApplicationLogEnricherOptions"/> in the service enricher.</param> 76/// <param name="configure">The <see cref="ApplicationLogEnricherOptions"/> configuration delegate.</param> 79public static IServiceCollection AddApplicationLogEnricher(this IServiceCollection services, Action<ApplicationLogEnricherOptions> configure) 93/// <param name="section">The <see cref="IConfigurationSection"/> to use for configuring <see cref="ApplicationLogEnricherOptions"/> in the application enricher.</param> 103.Configure<ApplicationLogEnricherOptions>(section);
Enrichment\ApplicationLogEnricher.cs (3)
16IOptions<ApplicationLogEnricherOptions> options, 19var enricherOptions = Throw.IfMemberNull(options, options.Value); 33private static KeyValuePair<string, object>[] Initialize(ApplicationLogEnricherOptions enricherOptions, ApplicationMetadata applicationMetadata)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (5)
144if (type == typeof(global::Microsoft.Extensions.Diagnostics.Enrichment.ApplicationLogEnricherOptions)) 146var temp = (global::Microsoft.Extensions.Diagnostics.Enrichment.ApplicationLogEnricherOptions)instance; 184public static void BindCore(IConfiguration configuration, ref global::Microsoft.Extensions.Diagnostics.Enrichment.ApplicationLogEnricherOptions instance, bool defaultValueIfNotFound, BinderOptions? binderOptions) 186ValidateConfigurationKeys(typeof(global::Microsoft.Extensions.Diagnostics.Enrichment.ApplicationLogEnricherOptions), s_configKeys_ApplicationLogEnricherOptions, configuration, binderOptions);
Microsoft.Extensions.Telemetry.Tests (12)
Enrichment\ApplicationEnricherExtensionsTests.cs (4)
62var options = host.Services.GetRequiredService<IOptions<ApplicationLogEnricherOptions>>().Value; 88var options = host.Services.GetRequiredService<IOptions<ApplicationLogEnricherOptions>>().Value;
Enrichment\ApplicationEnricherOptionsTests.cs (1)
14var options = new ApplicationLogEnricherOptions();
Enrichment\ApplicationLogEnricherTests.cs (3)
39var optionsNull = new Mock<IOptions<ApplicationLogEnricherOptions>>(); 40optionsNull.Setup(o => o.Value).Returns<IOptions<ApplicationLogEnricherOptions>>(null!); 58var options = new ApplicationLogEnricherOptions
Enrichment\ServiceEnricherExtensionsTests.cs (4)
63var options = host.Services.GetRequiredService<IOptions<ApplicationLogEnricherOptions>>().Value; 89var options = host.Services.GetRequiredService<IOptions<ApplicationLogEnricherOptions>>().Value;