11 implementations of CurrentValue
Aspire.Dashboard.Tests (1)
OtlpApiKeyAuthenticationHandlerTests.cs (1)
108public T CurrentValue { get; }
Microsoft.AspNetCore.HostFiltering.Tests (1)
MiddlewareConfigurationManagerTests.cs (1)
113public T CurrentValue { get; }
Microsoft.AspNetCore.Http.Microbenchmarks (1)
RequestTimeoutsMiddlewareBenchmark.cs (1)
140public RequestTimeoutOptions CurrentValue => _options;
Microsoft.AspNetCore.Http.Tests (1)
Timeouts\RequestTimeoutsMiddlewareTests.cs (1)
387public RequestTimeoutOptions CurrentValue => _options;
Microsoft.AspNetCore.HttpLogging.Tests (1)
OptionsWrapperMonitor.cs (1)
25public T CurrentValue { get; }
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (1)
StaticOptionsMonitor.cs (1)
16public T CurrentValue { get; }
Microsoft.Extensions.Logging (1)
StaticFilterOptionsMonitor.cs (1)
20public LoggerFilterOptions CurrentValue { get; }
Microsoft.Extensions.Logging.Console (1)
FormatterOptionsMonitor.cs (1)
28public TOptions CurrentValue => _options;
Microsoft.Extensions.Options (1)
OptionsMonitor.cs (1)
77public TOptions CurrentValue
Microsoft.Extensions.Telemetry.Tests (2)
Logging\ExtendedLoggerTests.cs (1)
958public T CurrentValue { get; }
Logging\SerialExtendedLoggerTests.cs (1)
98public T CurrentValue { get; }
143 references to CurrentValue
Aspire.Dashboard (6)
Authentication\OtlpApiKey\OtlpApiKeyAuthenticationHandler.cs (1)
24var options = _dashboardOptions.CurrentValue.Otlp;
DashboardWebApplication.cs (2)
324if (_dashboardOptionsMonitor.CurrentValue.Otlp.AuthMode == OtlpAuthMode.Unsecured) 332var options = _app.Services.GetRequiredService<IOptionsMonitor<DashboardOptions>>().CurrentValue;
Model\ValidateTokenMiddleware.cs (3)
31if (_options.CurrentValue.Frontend.AuthMode != FrontendAuthMode.BrowserToken) 37else if (context.Request.Query.TryGetValue("t", out var value) && _options.CurrentValue.Frontend.AuthMode == FrontendAuthMode.BrowserToken) 83if (string.IsNullOrEmpty(incomingBrowserToken) || dashboardOptions.CurrentValue.Frontend.GetBrowserTokenBytes() is not { } expectedBrowserTokenBytes)
Aspire.Dashboard.Tests (10)
Integration\StartupTests.cs (10)
258Assert.Equal(OtlpAuthMode.ApiKey, app.DashboardOptionsMonitor.CurrentValue.Otlp.AuthMode); 259Assert.Equal("TestKey123!", app.DashboardOptionsMonitor.CurrentValue.Otlp.PrimaryApiKey); 437Assert.Equal(FrontendAuthMode.BrowserToken, app.DashboardOptionsMonitor.CurrentValue.Frontend.AuthMode); 438Assert.Equal(16, Convert.FromHexString(app.DashboardOptionsMonitor.CurrentValue.Frontend.BrowserToken!).Length); 439Assert.Equal(OtlpAuthMode.Unsecured, app.DashboardOptionsMonitor.CurrentValue.Otlp.AuthMode); 457Assert.Equal(FrontendAuthMode.Unsecured, app.DashboardOptionsMonitor.CurrentValue.Frontend.AuthMode); 458Assert.Equal(OtlpAuthMode.Unsecured, app.DashboardOptionsMonitor.CurrentValue.Otlp.AuthMode); 475Assert.Equal(ResourceClientAuthMode.Certificate, app.DashboardOptionsMonitor.CurrentValue.ResourceServiceClient.AuthMode); 476Assert.Equal(DashboardClientCertificateSource.KeyStore, app.DashboardOptionsMonitor.CurrentValue.ResourceServiceClient.ClientCertificate.Source); 477Assert.Equal("MySubject", app.DashboardOptionsMonitor.CurrentValue.ResourceServiceClient.ClientCertificate.Subject);
Identity.DefaultUI.WebSite (1)
Pages\Contoso\Login.cshtml.cs (1)
20Options = options.CurrentValue;
Microsoft.Arcade.Common (1)
CompactConsoleLoggerFormatter.cs (1)
45_options = options.CurrentValue;
Microsoft.AspNetCore.HostFiltering (1)
MiddlewareConfigurationManager.cs (1)
23_middlewareConfiguration = ConfigureMiddleware(_optionsMonitor.CurrentValue);
Microsoft.AspNetCore.Http (1)
Timeouts\RequestTimeoutsMiddleware.cs (1)
40var options = _options.CurrentValue;
Microsoft.AspNetCore.HttpLogging (7)
FileLoggerProcessor.cs (1)
45var loggerOptions = _options.CurrentValue;
HttpLoggingMiddleware.cs (1)
57var options = _options.CurrentValue;
W3CLogger.cs (1)
20_loggingFields = _options.CurrentValue.LoggingFields;
W3CLoggerProcessor.cs (2)
21_loggingFields = options.CurrentValue.LoggingFields; 22_additionalRequestHeaders = W3CLoggerOptions.FilterRequestHeaders(options.CurrentValue);
W3CLoggingMiddleware.cs (2)
62_additionalRequestHeaders = W3CLoggerOptions.FilterRequestHeaders(options.CurrentValue); 72var options = _options.CurrentValue;
Microsoft.AspNetCore.HttpLogging.Tests (87)
HttpLoggingMiddlewareTests.cs (67)
104options.CurrentValue.LoggingFields = HttpLoggingFields.None; 148options.CurrentValue.LoggingFields = HttpLoggingFields.Request; 180options.CurrentValue.LoggingFields = HttpLoggingFields.RequestProperties; 212options.CurrentValue.LoggingFields = HttpLoggingFields.RequestHeaders; 271options.CurrentValue.RequestHeaders.Clear(); 272options.CurrentValue.RequestHeaders.Add("foo"); 293options.CurrentValue.LoggingFields = HttpLoggingFields.RequestBody; 311options.CurrentValue.LoggingFields = HttpLoggingFields.RequestBody; 342options.CurrentValue.LoggingFields = HttpLoggingFields.RequestBody; 370options.CurrentValue.LoggingFields = HttpLoggingFields.RequestBody; 398options.CurrentValue.LoggingFields = HttpLoggingFields.RequestBody; 399options.CurrentValue.RequestBodyLogLimit = 4; 425var expected = input.Substring(0, options.CurrentValue.RequestBodyLogLimit / 3) + "[Truncated by RequestBodyLogLimit]"; 435options.CurrentValue.LoggingFields = HttpLoggingFields.RequestBody; 461var expected = input.Substring(0, options.CurrentValue.RequestBodyLogLimit) + "[Truncated by RequestBodyLogLimit]"; 471options.CurrentValue.LoggingFields = HttpLoggingFields.RequestBody; 496options.CurrentValue.LoggingFields = HttpLoggingFields.RequestBody; 529options.CurrentValue.LoggingFields = HttpLoggingFields.RequestBody; 564options.CurrentValue.LoggingFields = HttpLoggingFields.RequestBody; 602options.CurrentValue.LoggingFields = HttpLoggingFields.RequestBody; 603options.CurrentValue.MediaTypeOptions.Clear(); 604options.CurrentValue.MediaTypeOptions.AddText("text/plain", encoding); 640options.CurrentValue.LoggingFields = HttpLoggingFields.RequestBody; 641options.CurrentValue.MediaTypeOptions.Clear(); 642options.CurrentValue.MediaTypeOptions.AddText("text/plain", encoding); 679options.CurrentValue.LoggingFields = HttpLoggingFields.RequestBody; 680options.CurrentValue.MediaTypeOptions.Clear(); 681options.CurrentValue.MediaTypeOptions.AddText("text/plain", encoding); 715options.CurrentValue.LoggingFields = HttpLoggingFields.All; 733options.CurrentValue.LoggingFields = HttpLoggingFields.None; 760options.CurrentValue.LoggingFields = HttpLoggingFields.All; 788options.CurrentValue.LoggingFields = HttpLoggingFields.All; 837options.CurrentValue.LoggingFields = HttpLoggingFields.Response; 861options.CurrentValue.LoggingFields = HttpLoggingFields.Duration; 883options.CurrentValue.LoggingFields = HttpLoggingFields.Response; 907options.CurrentValue.LoggingFields = HttpLoggingFields.Response; 933options.CurrentValue.LoggingFields = HttpLoggingFields.ResponseStatusCode; 957options.CurrentValue.LoggingFields = HttpLoggingFields.ResponseHeaders; 981options.CurrentValue.LoggingFields = HttpLoggingFields.ResponseHeaders; 1001options.CurrentValue.LoggingFields = HttpLoggingFields.ResponseHeaders; 1002options.CurrentValue.ResponseHeaders.Clear(); 1003options.CurrentValue.ResponseHeaders.Add("Test"); 1026options.CurrentValue.LoggingFields = HttpLoggingFields.ResponseBody; 1046options.CurrentValue.LoggingFields = HttpLoggingFields.ResponseBody; 1067options.CurrentValue.LoggingFields = HttpLoggingFields.ResponseBody; 1080var expected = input.Substring(0, options.CurrentValue.ResponseBodyLogLimit); 1088options.CurrentValue.LoggingFields = HttpLoggingFields.Response; 1126options.CurrentValue.LoggingFields = HttpLoggingFields.Response; 1163options.CurrentValue.LoggingFields = HttpLoggingFields.ResponseBody; 1183options.CurrentValue.LoggingFields = HttpLoggingFields.RequestBody; 1198options.CurrentValue.LoggingFields = HttpLoggingFields.ResponseStatusCode; 1241options.CurrentValue.LoggingFields = HttpLoggingFields.All; 1242options.CurrentValue.CombineLogs = true; 1302options.CurrentValue.LoggingFields = HttpLoggingFields.ResponseHeaders; 1345options.CurrentValue.LoggingFields = HttpLoggingFields.All ^ HttpLoggingFields.ResponsePropertiesAndHeaders; 1391options.CurrentValue.LoggingFields = HttpLoggingFields.ResponsePropertiesAndHeaders; 1426options.CurrentValue.LoggingFields = loggingFields; 1463options.CurrentValue.LoggingFields = loggingFields; 1504options.CurrentValue.LoggingFields = fields; 1505options.CurrentValue.CombineLogs = true; 1573options.CurrentValue.LoggingFields = HttpLoggingFields.All; 1574options.CurrentValue.CombineLogs = true; 1613options.CurrentValue.LoggingFields = HttpLoggingFields.All; 1641options.CurrentValue.LoggingFields = HttpLoggingFields.None; 1669options.CurrentValue.LoggingFields = HttpLoggingFields.All; 1697options.CurrentValue.LoggingFields = HttpLoggingFields.All; 1971var optionsAccessor = Mock.Of<IOptionsMonitor<HttpLoggingOptions>>(o => o.CurrentValue == options);
W3CLoggingMiddlewareTests.cs (20)
42options.CurrentValue.LoggingFields = W3CLoggingFields.None; 108options.CurrentValue.AdditionalRequestHeaders.Add("x-forwarded-for"); 109options.CurrentValue.AdditionalRequestHeaders.Add("x-client-ssl-protocol"); 110options.CurrentValue.AdditionalRequestHeaders.Add(":invalid"); 123options.CurrentValue.AdditionalRequestHeaders.Add("ignored-header-added-after-clone"); 154options.CurrentValue.LoggingFields = W3CLoggingFields.Cookie; 184options.CurrentValue.AdditionalRequestHeaders.Add("x-forwarded-for"); 185options.CurrentValue.LoggingFields = W3CLoggingFields.None; 220options.CurrentValue.LoggingFields = options.CurrentValue.LoggingFields | W3CLoggingFields.Host | 224options.CurrentValue.AdditionalRequestHeaders.Add(":invalid"); 225options.CurrentValue.AdditionalRequestHeaders.Add("x-forwarded-for"); 226options.CurrentValue.AdditionalRequestHeaders.Add("Host"); 227options.CurrentValue.AdditionalRequestHeaders.Add("Referer"); 228options.CurrentValue.AdditionalRequestHeaders.Add("User-Agent"); 229options.CurrentValue.AdditionalRequestHeaders.Add("Cookie"); 230options.CurrentValue.AdditionalRequestHeaders.Add("x-client-ssl-protocol"); 243options.CurrentValue.AdditionalRequestHeaders.Add("ignored-header-added-after-clone"); 275options.CurrentValue.LoggingFields = W3CLoggingFields.TimeTaken; 311var optionsAccessor = Mock.Of<IOptionsMonitor<W3CLoggerOptions>>(o => o.CurrentValue == options);
Microsoft.AspNetCore.Tests (4)
WebApplicationTests.cs (2)
1364var options = monitor.CurrentValue; 1377options = monitor.CurrentValue;
WebHostTests.cs (2)
40var options = monitor.CurrentValue; 53options = monitor.CurrentValue;
Microsoft.Extensions.Diagnostics (1)
Metrics\MetricsSubscriptionManager.cs (1)
27UpdateRules(options.CurrentValue);
Microsoft.Extensions.Http.Diagnostics (1)
Logging\Internal\OptionsExtensions.cs (1)
24return optionsMonitor.CurrentValue;
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Logging\Internal\HelperExtensions.cs (1)
39.SetupGet(monitor => monitor.CurrentValue)
Microsoft.Extensions.Logging (1)
LoggerFactory.cs (1)
103RefreshFilters(filterOption.CurrentValue);
Microsoft.Extensions.Logging.AzureAppServices (5)
BatchingLoggerProvider.cs (2)
39var loggerOptions = options.CurrentValue; 58UpdateOptions(options.CurrentValue);
BlobLoggerProvider.cs (2)
35options.CurrentValue.ContainerUrl, 58var options = _options.CurrentValue;
FileLoggerProvider.cs (1)
32var loggerOptions = options.CurrentValue;
Microsoft.Extensions.Logging.Console (12)
ConsoleLoggerProvider.cs (9)
61options.CurrentValue.QueueFullMode, 62options.CurrentValue.MaxQueueLength); 64ReloadLoggerOptions(options.CurrentValue); 155if (_options.CurrentValue.FormatterName == null || !_formatters.TryGetValue(_options.CurrentValue.FormatterName, out ConsoleFormatter? logFormatter)) 158logFormatter = _options.CurrentValue.Format switch 165if (_options.CurrentValue.FormatterName == null) 167UpdateFormatterOptions(logFormatter, _options.CurrentValue); 173_loggers.GetOrAdd(name, new ConsoleLogger(name, _messageQueue, logFormatter, _scopeProvider, _options.CurrentValue));
JsonConsoleFormatter.cs (1)
25ReloadLoggerOptions(options.CurrentValue);
SimpleConsoleFormatter.cs (1)
30ReloadLoggerOptions(options.CurrentValue);
SystemdConsoleFormatter.cs (1)
20ReloadLoggerOptions(options.CurrentValue);
Microsoft.Extensions.ObjectPool.DependencyInjection.Tests (1)
DependencyInjectionExtensionsTests.cs (1)
71Assert.Equal(DependencyInjectionPoolOptions.DefaultCapacity, options.CurrentValue.Capacity);
Microsoft.Extensions.Telemetry (3)
Logging\ExtendedLoggerFactory.cs (3)
64RefreshFilters(filterOptions.CurrentValue); 93Config = ComputeConfig(enrichmentOptions?.CurrentValue ?? new(), redactionOptions?.CurrentValue ?? new() { ApplyDiscriminator = false });