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