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
27 references to ApplicationLogEnricherOptions
Microsoft.Extensions.Telemetry (15)
Enrichment\ApplicationEnricherServiceCollectionExtensions.cs (7)
34
/// <param name="configure">The <see cref="
ApplicationLogEnricherOptions
"/> configuration delegate.</param>
41
public static IServiceCollection AddServiceLogEnricher(this IServiceCollection services, Action<
ApplicationLogEnricherOptions
> configure) =>
48
/// <param name="section">The <see cref="IConfigurationSection"/> to use for configuring <see cref="
ApplicationLogEnricherOptions
"/> in the service enricher.</param>
76
/// <param name="configure">The <see cref="
ApplicationLogEnricherOptions
"/> configuration delegate.</param>
79
public static IServiceCollection AddApplicationLogEnricher(this IServiceCollection services, Action<
ApplicationLogEnricherOptions
> configure)
93
/// <param name="section">The <see cref="IConfigurationSection"/> to use for configuring <see cref="
ApplicationLogEnricherOptions
"/> in the application enricher.</param>
103
.Configure<
ApplicationLogEnricherOptions
>(section);
Enrichment\ApplicationLogEnricher.cs (3)
16
IOptions<
ApplicationLogEnricherOptions
> options,
19
var
enricherOptions = Throw.IfMemberNull(options, options.Value);
33
private static KeyValuePair<string, object>[] Initialize(
ApplicationLogEnricherOptions
enricherOptions, ApplicationMetadata applicationMetadata)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (5)
144
if (type == typeof(global::Microsoft.Extensions.Diagnostics.Enrichment.
ApplicationLogEnricherOptions
))
146
var
temp = (global::Microsoft.Extensions.Diagnostics.Enrichment.
ApplicationLogEnricherOptions
)instance;
184
public static void BindCore(IConfiguration configuration, ref global::Microsoft.Extensions.Diagnostics.Enrichment.
ApplicationLogEnricherOptions
instance, bool defaultValueIfNotFound, BinderOptions? binderOptions)
186
ValidateConfigurationKeys(typeof(global::Microsoft.Extensions.Diagnostics.Enrichment.
ApplicationLogEnricherOptions
), s_configKeys_ApplicationLogEnricherOptions, configuration, binderOptions);
Microsoft.Extensions.Telemetry.Tests (12)
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
Enrichment\ServiceEnricherExtensionsTests.cs (4)
63
var
options = host.Services.GetRequiredService<IOptions<
ApplicationLogEnricherOptions
>>().Value;
89
var
options = host.Services.GetRequiredService<IOptions<
ApplicationLogEnricherOptions
>>().Value;