3 instantiations of ProcessLogEnricherOptions
Microsoft.Extensions.Telemetry.Tests (3)
Enrichment\ProcessLogEnricherTests.cs (3)
34var options = new ProcessLogEnricherOptions(); 45var options = new ProcessLogEnricherOptions 76var options = new ProcessLogEnricherOptions
20 references to ProcessLogEnricherOptions
Microsoft.Extensions.Telemetry (8)
Enrichment\ProcessEnricherServiceCollectionExtensions.cs (4)
34/// <param name="configure">The <see cref="ProcessLogEnricherOptions"/> configuration delegate.</param> 37public static IServiceCollection AddProcessLogEnricher(this IServiceCollection services, Action<ProcessLogEnricherOptions> configure) 52/// <param name="section">The <see cref="IConfigurationSection"/> to use for configuring <see cref="ProcessLogEnricherOptions"/> in the process enricher.</param> 63.Configure<ProcessLogEnricherOptions>(section);
Enrichment\ProcessLogEnricher.cs (2)
20public ProcessLogEnricher(IOptions<ProcessLogEnricherOptions> options) 22var enricherOptions = Throw.IfMemberNull(options, options.Value);
Enrichment\StaticProcessLogEnricher.cs (2)
18public StaticProcessLogEnricher(IOptions<ProcessLogEnricherOptions> options) 20var enricherOptions = Throw.IfMemberNull(options, options.Value);
Microsoft.Extensions.Telemetry.Tests (12)
Enrichment\ProcessEnricherExtensionsTests.cs (7)
33new ServiceCollection().AddProcessLogEnricher((Action<ProcessLogEnricherOptions>)null!)); 63var options = host.Services.GetRequiredService<IOptions<ProcessLogEnricherOptions>>().Value; 76($"{TestSectionName}:{nameof(ProcessLogEnricherOptions.ProcessId)}", "true"), 77($"{TestSectionName}:{nameof(ProcessLogEnricherOptions.ThreadId)}", "false")) 86var options = host.Services.GetRequiredService<IOptions<ProcessLogEnricherOptions>>().Value;
Enrichment\ProcessLogEnricherTests.cs (5)
23var optionsNull = new Mock<IOptions<ProcessLogEnricherOptions>>(); 24optionsNull.Setup(o => o.Value).Returns<IOptions<ProcessLogEnricherOptions>>(null!); 34var options = new ProcessLogEnricherOptions(); 45var options = new ProcessLogEnricherOptions 76var options = new ProcessLogEnricherOptions