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
15 references to ApplicationLogEnricherOptions
Microsoft.Extensions.Telemetry (7)
Enrichment\ApplicationEnricherServiceCollectionExtensions.cs (4)
34/// <param name="configure">The <see cref="ApplicationLogEnricherOptions"/> configuration delegate.</param> 37public static IServiceCollection AddServiceLogEnricher(this IServiceCollection services, Action<ApplicationLogEnricherOptions> configure) 51/// <param name="section">The <see cref="IConfigurationSection"/> to use for configuring <see cref="ApplicationLogEnricherOptions"/> in the service enricher.</param> 61.Configure<ApplicationLogEnricherOptions>(section);
Enrichment\ApplicationLogEnricher.cs (3)
17IOptions<ApplicationLogEnricherOptions> options, 20var enricherOptions = Throw.IfMemberNull(options, options.Value); 34private static KeyValuePair<string, object>[] Initialize(ApplicationLogEnricherOptions enricherOptions, ApplicationMetadata applicationMetadata)
Microsoft.Extensions.Telemetry.Tests (8)
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