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
25 references to ProcessLogEnricherOptions
Microsoft.Extensions.Telemetry (13)
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);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (5)
150
else if (type == typeof(global::Microsoft.Extensions.Diagnostics.Enrichment.
ProcessLogEnricherOptions
))
152
var
temp = (global::Microsoft.Extensions.Diagnostics.Enrichment.
ProcessLogEnricherOptions
)instance;
225
public static void BindCore(IConfiguration configuration, ref global::Microsoft.Extensions.Diagnostics.Enrichment.
ProcessLogEnricherOptions
instance, bool defaultValueIfNotFound, BinderOptions? binderOptions)
227
ValidateConfigurationKeys(typeof(global::Microsoft.Extensions.Diagnostics.Enrichment.
ProcessLogEnricherOptions
), s_configKeys_ProcessLogEnricherOptions, configuration, binderOptions);
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