32 instantiations of CircuitOptions
Microsoft.AspNetCore.Components.Server.Tests (32)
CircuitDisconnectMiddlewareTest.cs (7)
24Options.Create(new CircuitOptions()), 52Options.Create(new CircuitOptions()), 79Options.Create(new CircuitOptions()), 106Options.Create(new CircuitOptions()), 139Options.Create(new CircuitOptions()), 174Options.Create(new CircuitOptions()), 211Options.Create(new CircuitOptions()),
Circuits\CircuitHostTest.cs (3)
711new CircuitOptions(), 715CreateJSRuntime(new CircuitOptions()), 716new CircuitJSComponentInterop(new CircuitOptions()))
Circuits\CircuitRegistryTest.cs (4)
301var circuitOptions = new CircuitOptions 328var circuitOptions = new CircuitOptions 357: base(Options.Create(circuitOptions ?? new CircuitOptions()), NullLogger<CircuitRegistry>.Instance, factory) 396Options.Create(new CircuitOptions()),
Circuits\ComponentHubTest.cs (2)
111Options.Create(new CircuitOptions())); 113Options.Create(new CircuitOptions()),
Circuits\RemoteJSDataStreamTest.cs (10)
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>>());
Circuits\RemoteJSRuntimeTest.cs (1)
104var jsRuntime = new TestRemoteJSRuntime(Options.Create(new CircuitOptions()), componentHubOptions, Mock.Of<ILogger<RemoteJSRuntime>>());
Circuits\RemoteRendererTest.cs (1)
657new CircuitOptions
Circuits\TestCircuitHost.cs (4)
31var jsRuntime = new RemoteJSRuntime(Options.Create(new CircuitOptions()), Options.Create(new HubOptions<ComponentHub>()), Mock.Of<ILogger<RemoteJSRuntime>>()); 44new CircuitOptions(), 49new CircuitJSComponentInterop(new CircuitOptions())); 56new CircuitOptions(),
44 references to CircuitOptions
Microsoft.AspNetCore.Components.Server (34)
CircuitJavaScriptInitializationMiddleware.cs (1)
16public CircuitJavaScriptInitializationMiddleware(IOptions<CircuitOptions> options, RequestDelegate _)
Circuits\CircuitFactory.cs (2)
21private readonly CircuitOptions _options; 28IOptions<CircuitOptions> options)
Circuits\CircuitHost.cs (4)
23private readonly CircuitOptions _options; 43CircuitOptions options, 699$"detailed exceptions by setting 'DetailedErrors: true' in 'appSettings.Development.json' or set '{typeof(CircuitOptions).Name}.{nameof(CircuitOptions.DetailedErrors)}'. {additionalInformation}";
Circuits\CircuitJSComponentInterop.cs (2)
10private readonly CircuitOptions _circuitOptions; 13internal CircuitJSComponentInterop(CircuitOptions circuitOptions)
Circuits\CircuitOptionsJavaScriptInitializersConfiguration.cs (2)
10internal sealed class CircuitOptionsJavaScriptInitializersConfiguration : IConfigureOptions<CircuitOptions> 19public void Configure(CircuitOptions options)
Circuits\CircuitOptionsJSInteropDetailedErrorsConfiguration.cs (2)
10internal sealed class CircuitOptionsJSInteropDetailedErrorsConfiguration : IConfigureOptions<CircuitOptions> 19public void Configure(CircuitOptions options)
Circuits\CircuitRegistry.cs (2)
41private readonly CircuitOptions _options; 47IOptions<CircuitOptions> options,
Circuits\RemoteErrorBoundaryLogger.cs (4)
15private readonly CircuitOptions _options; 17public RemoteErrorBoundaryLogger(ILogger<ErrorBoundary> logger, IJSRuntime jsRuntime, IOptions<CircuitOptions> options) 36: $"For more details turn on detailed exceptions in '{nameof(CircuitOptions)}.{nameof(CircuitOptions.DetailedErrors)}'";
Circuits\RemoteJSRuntime.cs (4)
18private readonly CircuitOptions _options; 41IOptions<CircuitOptions> circuitOptions, 84errorMessage += $". For more details turn on detailed exceptions in '{nameof(CircuitOptions)}.{nameof(CircuitOptions.DetailedErrors)}'";
Circuits\RemoteRenderer.cs (2)
24private readonly CircuitOptions _options; 43CircuitOptions options,
DependencyInjection\ComponentServiceCollectionExtensions.cs (4)
30/// <param name="configure">A callback to configure <see cref="CircuitOptions"/>.</param> 33public static IServerSideBlazorBuilder AddServerSideBlazor(this IServiceCollection services, Action<CircuitOptions>? configure = null) 87services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<CircuitOptions>, CircuitOptionsJSInteropDetailedErrorsConfiguration>()); 88services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<CircuitOptions>, CircuitOptionsJavaScriptInitializersConfiguration>());
DependencyInjection\ServerRazorComponentsBuilderExtensions.cs (2)
30/// <param name="configure">A callback to configure <see cref="CircuitOptions"/>.</param> 33public static IServerSideBlazorBuilder AddInteractiveServerComponents(this IRazorComponentsBuilder builder, Action<CircuitOptions>? configure = null)
DependencyInjection\ServerSideBlazorBuilderExtensions.cs (3)
18/// <param name="configure">A callback to configure <see cref="CircuitOptions"/>.</param> 20public static IServerSideBlazorBuilder AddCircuitOptions(this IServerSideBlazorBuilder builder, Action<CircuitOptions> configure) 25builder.Services.Configure<CircuitOptions>(configure);
Microsoft.AspNetCore.Components.Server.Tests (10)
Circuits\CircuitHostTest.cs (1)
728private static RemoteJSRuntime CreateJSRuntime(CircuitOptions options)
Circuits\CircuitRegistryTest.cs (3)
301var circuitOptions = new CircuitOptions 328var circuitOptions = new CircuitOptions 356public TestCircuitRegistry(CircuitIdFactory factory, CircuitOptions circuitOptions = null)
Circuits\ComponentHubTest.cs (1)
194IOptions<CircuitOptions> options)
Circuits\RemoteJSDataStreamTest.cs (1)
357public TestRemoteJSRuntime(IOptions<CircuitOptions> circuitOptions, IOptions<HubOptions<ComponentHub>> hubOptions, ILogger<RemoteJSRuntime> logger) : base(circuitOptions, hubOptions, logger)
Circuits\RemoteJSRuntimeTest.cs (1)
110public TestRemoteJSRuntime(IOptions<CircuitOptions> circuitOptions, IOptions<HubOptions<ComponentHub>> hubOptions, ILogger<RemoteJSRuntime> logger) : base(circuitOptions, hubOptions, logger)
Circuits\RemoteRendererTest.cs (2)
704public TestRemoteRenderer(IServiceProvider serviceProvider, ILoggerFactory loggerFactory, CircuitOptions options, CircuitClientProxy client, IServerComponentDeserializer serverComponentDeserializer, ILogger logger) 725private static RemoteJSRuntime CreateJSRuntime(CircuitOptions options)
Circuits\TestCircuitHost.cs (1)
16private TestCircuitHost(CircuitId circuitId, AsyncServiceScope scope, CircuitOptions options, CircuitClientProxy client, RemoteRenderer renderer, IReadOnlyList<ComponentDescriptor> descriptors, RemoteJSRuntime jsRuntime, RemoteNavigationManager navigationManager, CircuitHandler[] circuitHandlers, ILogger logger)