614 references to Options
Aspire.Dashboard (6)
Aspire.Dashboard.Components.Tests (5)
Aspire.Dashboard.Tests (3)
Aspire.Hosting.Tests (6)
Aspire.Microsoft.Data.SqlClient (1)
Aspire.Microsoft.EntityFrameworkCore.SqlServer (1)
Aspire.OpenAI (1)
Aspire.StackExchange.Redis (3)
Cookies (1)
KeyManagementSimulator (1)
Microsoft.AspNetCore.Authentication.BearerToken (6)
Microsoft.AspNetCore.Authentication.JwtBearer (1)
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
Microsoft.AspNetCore.Authentication.Test (1)
Microsoft.AspNetCore.Authorization (1)
Microsoft.AspNetCore.Authorization.Test (9)
Microsoft.AspNetCore.Components (1)
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
Microsoft.AspNetCore.Components.Server.Tests (39)
Circuits\RemoteJSDataStreamTest.cs (20)
15private static readonly TestRemoteJSRuntime _jsRuntime = new(Options.Create(new CircuitOptions()), Options.Create(new HubOptions<ComponentHub>()), Mock.Of<ILogger<RemoteJSRuntime>>());
48var jsRuntime = new TestRemoteJSRuntime(Options.Create(new CircuitOptions()), Options.Create(new HubOptions<ComponentHub>()), Mock.Of<ILogger<RemoteJSRuntime>>());
76var jsRuntime = new TestRemoteJSRuntime(Options.Create(new CircuitOptions()), Options.Create(new HubOptions<ComponentHub>()), Mock.Of<ILogger<RemoteJSRuntime>>());
104var jsRuntime = new TestRemoteJSRuntime(Options.Create(new CircuitOptions()), Options.Create(new HubOptions<ComponentHub>()), Mock.Of<ILogger<RemoteJSRuntime>>());
122var jsRuntime = new TestRemoteJSRuntime(Options.Create(new CircuitOptions()), Options.Create(new HubOptions<ComponentHub>()), Mock.Of<ILogger<RemoteJSRuntime>>());
141var jsRuntime = new TestRemoteJSRuntime(Options.Create(new CircuitOptions()), Options.Create(new HubOptions<ComponentHub>()), Mock.Of<ILogger<RemoteJSRuntime>>());
160var jsRuntime = new TestRemoteJSRuntime(Options.Create(new CircuitOptions()), Options.Create(new HubOptions<ComponentHub>()), Mock.Of<ILogger<RemoteJSRuntime>>());
180var jsRuntime = new TestRemoteJSRuntime(Options.Create(new CircuitOptions()), Options.Create(new HubOptions<ComponentHub>()), Mock.Of<ILogger<RemoteJSRuntime>>());
205var jsRuntime = new TestRemoteJSRuntime(Options.Create(new CircuitOptions()), Options.Create(new HubOptions<ComponentHub>()), Mock.Of<ILogger<RemoteJSRuntime>>());
246var jsRuntime = new TestRemoteJSRuntime(Options.Create(new CircuitOptions()), Options.Create(new HubOptions<ComponentHub>()), Mock.Of<ILogger<RemoteJSRuntime>>());
Microsoft.AspNetCore.ConcurrencyLimiter.Tests (9)
Microsoft.AspNetCore.CookiePolicy (1)
Microsoft.AspNetCore.Cors.Test (4)
Microsoft.AspNetCore.DataProtection (1)
Microsoft.AspNetCore.DataProtection.Tests (27)
Microsoft.AspNetCore.Diagnostics (5)
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (2)
Microsoft.AspNetCore.Diagnostics.HealthChecks (4)
Builder\HealthCheckApplicationBuilderExtensions.cs (3)
62UseHealthChecksCore(app, path, port: null, new[] { Options.Create(options), });
148UseHealthChecksCore(app, path, port, new[] { Options.Create(options), });
187UseHealthChecksCore(app, path, portAsInt, new[] { Options.Create(options), });
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (11)
Latency\RequestLatencyTelemetryMiddlewareTests.cs (11)
33Options.Create(new RequestLatencyTelemetryOptions()), new List<ILatencyDataExporter> { ex1, ex2 },
34Options.Create(new ApplicationMetadata { ApplicationName = serverName }));
63Options.Create(new RequestLatencyTelemetryOptions()),
92Options.Create(new RequestLatencyTelemetryOptions()), new List<ILatencyDataExporter> { ex1, ex2 },
93Options.Create(new ApplicationMetadata { ApplicationName = serverName }));
121Options.Create(new RequestLatencyTelemetryOptions()),
123Options.Create(new ApplicationMetadata()));
150Options.Create(new RequestLatencyTelemetryOptions()),
152Options.Create(new ApplicationMetadata()));
172Options.Create(new RequestLatencyTelemetryOptions { LatencyDataExportTimeout = exportTimeout }),
174Options.Create(new ApplicationMetadata()));
Microsoft.AspNetCore.HeaderParsing (1)
Microsoft.AspNetCore.HeaderParsing.Tests (2)
Microsoft.AspNetCore.Http.Connections.Tests (2)
Microsoft.AspNetCore.Http.Extensions.Tests (10)
Microsoft.AspNetCore.HttpOverrides (2)
Microsoft.AspNetCore.Identity.Test (1)
Microsoft.AspNetCore.Localization (3)
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (5)
Microsoft.AspNetCore.Mvc.Core (1)
Microsoft.AspNetCore.Mvc.Core.Test (94)
ControllerBaseTest.cs (10)
2347ProblemDetailsFactory = new DefaultProblemDetailsFactory(Options.Create(options)),
2376ProblemDetailsFactory = new DefaultProblemDetailsFactory(Options.Create(options)),
2398ProblemDetailsFactory = new DefaultProblemDetailsFactory(Options.Create(options)),
2419ProblemDetailsFactory = new DefaultProblemDetailsFactory(Options.Create(options)),
2440ProblemDetailsFactory = new DefaultProblemDetailsFactory(Options.Create(options)),
2466ProblemDetailsFactory = new DefaultProblemDetailsFactory(Options.Create(options)),
2493ProblemDetailsFactory = new DefaultProblemDetailsFactory(Options.Create(options)),
2517ProblemDetailsFactory = new DefaultProblemDetailsFactory(Options.Create(options)),
2538ProblemDetailsFactory = new DefaultProblemDetailsFactory(Options.Create(options)),
3209Options.Create(new MvcDataAnnotationsLocalizationOptions()),
Microsoft.AspNetCore.Mvc.Core.TestCommon (11)
Microsoft.AspNetCore.Mvc.Cors.Test (2)
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (14)
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (2)
Microsoft.AspNetCore.Mvc.IntegrationTests (6)
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (6)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (6)
Microsoft.AspNetCore.Mvc.RazorPages.Test (34)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (4)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (33)
Microsoft.AspNetCore.OpenApi.Tests (6)
Microsoft.AspNetCore.OutputCaching.Tests (5)
Microsoft.AspNetCore.RateLimiting (1)
Microsoft.AspNetCore.RateLimiting.Tests (2)
Microsoft.AspNetCore.RequestDecompression.Microbenchmarks (1)
Microsoft.AspNetCore.RequestDecompression.Tests (5)
Microsoft.AspNetCore.ResponseCaching.Microbenchmarks (1)
Microsoft.AspNetCore.ResponseCaching.Tests (3)
Microsoft.AspNetCore.ResponseCompression.Microbenchmarks (1)
Microsoft.AspNetCore.Rewrite (1)
Microsoft.AspNetCore.Routing.Microbenchmarks (5)
Microsoft.AspNetCore.Routing.Tests (12)
Microsoft.AspNetCore.Security.Microbenchmarks (2)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (4)
Microsoft.AspNetCore.Server.HttpSys.NonHelixTests (4)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (10)
KestrelServerTests.cs (10)
274new KestrelServer(Options.Create<KestrelServerOptions>(null), new MockTransportFactory(), mockLoggerFactory.Object);
283Options.Create<KestrelServerOptions>(null),
307Options.Create<KestrelServerOptions>(options),
574var server = new KestrelServer(Options.Create(options), mockTransportFactory.Object, mockLoggerFactory.Object);
632var server = new KestrelServer(Options.Create(options), mockTransportFactory.Object, mockLoggerFactory.Object);
687var server = new KestrelServer(Options.Create(options), mockTransportFactory.Object, mockLoggerFactory.Object);
822var server = new KestrelServer(Options.Create(options), mockTransportFactory.Object, mockLoggerFactory.Object);
960var server = new KestrelServer(Options.Create(options), mockTransportFactory.Object, mockLoggerFactory.Object);
974return new KestrelServer(Options.Create(options), new MockTransportFactory(), new LoggerFactory(new[] { new KestrelTestLoggerProvider(testLogger) }));
979return new KestrelServer(Options.Create(options), new MockTransportFactory(), new LoggerFactory(new[] { new KestrelTestLoggerProvider(throwOnCriticalErrors) }));
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (4)
Microsoft.AspNetCore.Session (1)
Microsoft.AspNetCore.Session.Tests (1)
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
Microsoft.AspNetCore.SignalR.Client.Tests (5)
Microsoft.AspNetCore.SignalR.Common.Tests (2)
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (1)
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (1)
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (4)
Microsoft.AspNetCore.SignalR.Tests (1)
Microsoft.AspNetCore.StaticFiles (3)
Microsoft.AspNetCore.TestHost (1)
Microsoft.AspNetCore.WebSockets (1)
Microsoft.Authentication.WebAssembly.Msal (1)
Microsoft.Extensions.Compliance.Redaction.Tests (10)
Microsoft.Extensions.Compliance.Testing (3)
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (2)
Microsoft.Extensions.Diagnostics.Probes (1)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (18)
Microsoft.Extensions.Diagnostics.Testing (1)
Microsoft.Extensions.Diagnostics.Testing.Tests (2)
Microsoft.Extensions.Hosting.WindowsServices (1)
Microsoft.Extensions.Http (11)
Microsoft.Extensions.Http.Diagnostics.Tests (5)
Microsoft.Extensions.Logging.Console (1)
Microsoft.Extensions.Options (59)
Microsoft.Extensions.Options.ConfigurationExtensions (4)
Microsoft.Extensions.Options.Contextual (4)
Microsoft.Extensions.Options.Contextual.Tests (1)
Microsoft.Extensions.ServiceDiscovery.Tests (1)
Microsoft.Extensions.Telemetry.Tests (4)
RoutingSandbox (1)
RoutingWebSite (1)
Sockets.BindTests (1)