9 instantiations of GlobalLogBufferingOptions
Microsoft.Extensions.Telemetry.Tests (9)
Buffering\GlobalLogBufferingConfigureOptionsTests.cs (8)
18var options = new GlobalLogBufferingOptions(); 25Assert.Equivalent(new GlobalLogBufferingOptions(), options); 32var options = new GlobalLogBufferingOptions(); 40Assert.Equivalent(new GlobalLogBufferingOptions(), options); 56var options = new GlobalLogBufferingOptions(); 63Assert.Equivalent(new GlobalLogBufferingOptions(), options); 83var options = new GlobalLogBufferingOptions(); 114var options = new GlobalLogBufferingOptions();
Buffering\GlobalLogBufferingOptionsCustomValidatorTests.cs (1)
16var options = new GlobalLogBufferingOptions
36 references to GlobalLogBufferingOptions
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (3)
Buffering\PerIncomingRequestLoggingBuilderExtensionsTests.cs (1)
101Assert.True(serviceProvider.GetRequiredService<IOptionsMonitor<GlobalLogBufferingOptions>>().CurrentValue.IncludeScopes);
Logging\AcceptanceTests.cs (2)
870builder.Services.Configure<GlobalLogBufferingOptions>(options => 916builder.Services.Configure<GlobalLogBufferingOptions>(options =>
Microsoft.Extensions.Telemetry (23)
Buffering\GlobalBuffer.cs (3)
27private readonly IOptionsMonitor<GlobalLogBufferingOptions> _options; 46IOptionsMonitor<GlobalLogBufferingOptions> options, 158private void OnOptionsChanged(GlobalLogBufferingOptions? updatedOptions)
Buffering\GlobalBufferLoggingBuilderExtensions.cs (10)
36.Services.AddOptionsWithValidateOnStart<GlobalLogBufferingOptions, GlobalLogBufferingOptionsValidator>() 37.Services.AddOptionsWithValidateOnStart<GlobalLogBufferingOptions, GlobalLogBufferingOptionsCustomValidator>() 38.Services.AddSingleton<IConfigureOptions<GlobalLogBufferingOptions>>( 40.AddSingleton<IOptionsChangeTokenSource<GlobalLogBufferingOptions>>( 41new ConfigurationChangeTokenSource<GlobalLogBufferingOptions>(configuration)); 56public static ILoggingBuilder AddGlobalBuffer(this ILoggingBuilder builder, Action<GlobalLogBufferingOptions> configure) 62.Services.AddOptionsWithValidateOnStart<GlobalLogBufferingOptions, GlobalLogBufferingOptionsValidator>() 63.Services.AddOptionsWithValidateOnStart<GlobalLogBufferingOptions, GlobalLogBufferingOptionsCustomValidator>() 84.Services.AddOptionsWithValidateOnStart<GlobalLogBufferingOptions, GlobalLogBufferingOptionsValidator>() 85.Services.AddOptionsWithValidateOnStart<GlobalLogBufferingOptions, GlobalLogBufferingOptionsCustomValidator>()
Buffering\GlobalLogBufferingConfigureOptions.cs (4)
10internal sealed class GlobalLogBufferingConfigureOptions : IConfigureOptions<GlobalLogBufferingOptions> 20public void Configure(GlobalLogBufferingOptions options) 33GlobalLogBufferingOptions? parsedOptions = section.Get<GlobalLogBufferingOptions>();
Buffering\GlobalLogBufferingOptionsCustomValidator.cs (2)
10internal sealed class GlobalLogBufferingOptionsCustomValidator : IValidateOptions<GlobalLogBufferingOptions> 14public ValidateOptionsResult Validate(string? name, GlobalLogBufferingOptions options)
Buffering\GlobalLogBufferingOptionsValidator.cs (1)
10internal sealed partial class GlobalLogBufferingOptionsValidator : IValidateOptions<GlobalLogBufferingOptions>
Buffering\GlobalLogBufferManager.cs (3)
16private readonly IOptionsMonitor<GlobalLogBufferingOptions> _options; 20public GlobalLogBufferManager(IOptionsMonitor<GlobalLogBufferingOptions> options, IExternalScopeProvider scopeProvider) 26IOptionsMonitor<GlobalLogBufferingOptions> options,
Microsoft.Extensions.Telemetry.Tests (10)
Buffering\GlobalBufferLoggerBuilderExtensionsTests.cs (4)
58builder.Services.Configure<GlobalLogBufferingOptions>(options => 64var options = serviceProvider.GetService<IOptionsMonitor<GlobalLogBufferingOptions>>(); 117IOptionsMonitor<GlobalLogBufferingOptions>? options = dlf.ServiceProvider.GetService<IOptionsMonitor<GlobalLogBufferingOptions>>();
Buffering\GlobalLogBufferingConfigureOptionsTests.cs (5)
18var options = new GlobalLogBufferingOptions(); 32var options = new GlobalLogBufferingOptions(); 56var options = new GlobalLogBufferingOptions(); 83var options = new GlobalLogBufferingOptions(); 114var options = new GlobalLogBufferingOptions();
Buffering\GlobalLogBufferingOptionsCustomValidatorTests.cs (1)
16var options = new GlobalLogBufferingOptions