3 instantiations of ProcessLogEnricherOptions
Microsoft.Extensions.Telemetry.Tests (3)
Enrichment\ProcessLogEnricherTests.cs (3)
34
var options = new
ProcessLogEnricherOptions
();
45
var options = new
ProcessLogEnricherOptions
76
var 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>
37
public 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)
20
public ProcessLogEnricher(IOptions<
ProcessLogEnricherOptions
> options)
22
var
enricherOptions = Throw.IfMemberNull(options, options.Value);
Enrichment\StaticProcessLogEnricher.cs (2)
18
public StaticProcessLogEnricher(IOptions<
ProcessLogEnricherOptions
> options)
20
var
enricherOptions = Throw.IfMemberNull(options, options.Value);
Microsoft.Extensions.Telemetry.Tests (12)
Enrichment\ProcessEnricherExtensionsTests.cs (7)
33
new ServiceCollection().AddProcessLogEnricher((Action<
ProcessLogEnricherOptions
>)null!));
63
var
options = host.Services.GetRequiredService<IOptions<
ProcessLogEnricherOptions
>>().Value;
76
($"{TestSectionName}:{nameof(
ProcessLogEnricherOptions
.ProcessId)}", "true"),
77
($"{TestSectionName}:{nameof(
ProcessLogEnricherOptions
.ThreadId)}", "false"))
86
var
options = host.Services.GetRequiredService<IOptions<
ProcessLogEnricherOptions
>>().Value;
Enrichment\ProcessLogEnricherTests.cs (5)
23
var optionsNull = new Mock<IOptions<
ProcessLogEnricherOptions
>>();
24
optionsNull.Setup(o => o.Value).Returns<IOptions<
ProcessLogEnricherOptions
>>(null!);
34
var
options = new ProcessLogEnricherOptions();
45
var
options = new ProcessLogEnricherOptions
76
var
options = new ProcessLogEnricherOptions