3 instantiations of ApplicationLogEnricherOptions
Microsoft.Extensions.Telemetry.Tests (3)
Enrichment\ApplicationEnricherOptionsTests.cs (1)
14
var options = new
ApplicationLogEnricherOptions
();
Enrichment\ApplicationLogEnricherTests.cs (2)
34
var options = new
ApplicationLogEnricherOptions
58
var 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>
37
public 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)
17
IOptions<
ApplicationLogEnricherOptions
> options,
20
var
enricherOptions = Throw.IfMemberNull(options, options.Value);
34
private static KeyValuePair<string, object>[] Initialize(
ApplicationLogEnricherOptions
enricherOptions, ApplicationMetadata applicationMetadata)
Microsoft.Extensions.Telemetry.Tests (8)
Enrichment\ApplicationEnricherExtensionsTests.cs (4)
62
var
options = host.Services.GetRequiredService<IOptions<
ApplicationLogEnricherOptions
>>().Value;
88
var
options = host.Services.GetRequiredService<IOptions<
ApplicationLogEnricherOptions
>>().Value;
Enrichment\ApplicationEnricherOptionsTests.cs (1)
14
var
options = new ApplicationLogEnricherOptions();
Enrichment\ApplicationLogEnricherTests.cs (3)
39
var optionsNull = new Mock<IOptions<
ApplicationLogEnricherOptions
>>();
40
optionsNull.Setup(o => o.Value).Returns<IOptions<
ApplicationLogEnricherOptions
>>(null!);
58
var
options = new ApplicationLogEnricherOptions