3 instantiations of BrowserOptions
Microsoft.AspNetCore.Components.Endpoints (3)
_generated\19\BrowserOptionsJsonContext.BrowserOptions.g.cs (1)
31
ObjectCreator = () => new global::Microsoft.AspNetCore.Components.
BrowserOptions
(),
BrowserConfiguration\BrowserOptions.cs (1)
51
var options = metadataOptions ?? new
BrowserOptions
();
Builder\RazorComponentsEndpointConventionBuilderExtensions.cs (1)
81
var options = new
BrowserOptions
();
55 references to BrowserOptions
Microsoft.AspNetCore.Components.Endpoints (50)
_generated\19\BrowserOptionsJsonContext.BrowserOptions.g.cs (28)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.
BrowserOptions
>? _BrowserOptions;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.
BrowserOptions
> BrowserOptions
22
get => _BrowserOptions ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.
BrowserOptions
>)Options.GetTypeInfo(typeof(global::Microsoft.AspNetCore.Components.
BrowserOptions
));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.
BrowserOptions
> Create_BrowserOptions(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.AspNetCore.Components.
BrowserOptions
>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.
BrowserOptions
> jsonTypeInfo))
29
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.AspNetCore.Components.
BrowserOptions
>
35
ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.
BrowserOptions
).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
41
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.AspNetCore.Components.
BrowserOptions
>(options, objectInfo);
58
DeclaringType = typeof(global::Microsoft.AspNetCore.Components.
BrowserOptions
),
60
Getter = static obj => ((global::Microsoft.AspNetCore.Components.
BrowserOptions
)obj).LogLevel,
61
Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Components.
BrowserOptions
)obj).LogLevel = value!,
68
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.
BrowserOptions
).GetProperty("LogLevel", InstanceMemberBindingFlags, null, typeof(global::Microsoft.Extensions.Logging.LogLevel?), global::System.Array.Empty<global::System.Type>(), null),
78
DeclaringType = typeof(global::Microsoft.AspNetCore.Components.
BrowserOptions
),
80
Getter = static obj => ((global::Microsoft.AspNetCore.Components.
BrowserOptions
)obj).InteractiveWebAssembly,
88
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.
BrowserOptions
).GetProperty("InteractiveWebAssembly", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Components.InteractiveWebAssemblyBrowserOptions), global::System.Array.Empty<global::System.Type>(), null),
99
DeclaringType = typeof(global::Microsoft.AspNetCore.Components.
BrowserOptions
),
101
Getter = static obj => ((global::Microsoft.AspNetCore.Components.
BrowserOptions
)obj).InteractiveServer,
109
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.
BrowserOptions
).GetProperty("InteractiveServer", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Components.InteractiveServerBrowserOptions), global::System.Array.Empty<global::System.Type>(), null),
120
DeclaringType = typeof(global::Microsoft.AspNetCore.Components.
BrowserOptions
),
122
Getter = static obj => ((global::Microsoft.AspNetCore.Components.
BrowserOptions
)obj).StaticServer,
130
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.
BrowserOptions
).GetProperty("StaticServer", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Components.StaticServerBrowserOptions), global::System.Array.Empty<global::System.Type>(), null),
141
private void BrowserOptionsSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.AspNetCore.Components.
BrowserOptions
? value)
151
global::Microsoft.Extensions.Logging.LogLevel? __value_LogLevel = ((global::Microsoft.AspNetCore.Components.
BrowserOptions
)value).LogLevel;
157
global::Microsoft.AspNetCore.Components.InteractiveWebAssemblyBrowserOptions __value_InteractiveWebAssembly = ((global::Microsoft.AspNetCore.Components.
BrowserOptions
)value).InteractiveWebAssembly;
163
global::Microsoft.AspNetCore.Components.InteractiveServerBrowserOptions __value_InteractiveServer = ((global::Microsoft.AspNetCore.Components.
BrowserOptions
)value).InteractiveServer;
169
global::Microsoft.AspNetCore.Components.StaticServerBrowserOptions __value_StaticServer = ((global::Microsoft.AspNetCore.Components.
BrowserOptions
)value).StaticServer;
_generated\34\BrowserOptionsJsonContext.GetJsonTypeInfo.g.cs (1)
30
if (type == typeof(global::Microsoft.AspNetCore.Components.
BrowserOptions
))
BrowserConfiguration\BrowserOptions.cs (7)
38
/// Gets the <see cref="
BrowserOptions
"/> for the current request.
42
/// <returns>The <see cref="
BrowserOptions
"/> for the current request.</returns>
43
public static
BrowserOptions
GetBrowserOptions(HttpContext context)
50
var
metadataOptions = context.GetEndpoint()?.Metadata.GetMetadata<
BrowserOptions
>();
51
var
options = metadataOptions ?? new BrowserOptions();
56
return (
BrowserOptions
)result!;
BrowserConfiguration\ConfigureBrowser.cs (7)
10
/// options into the <see cref="
BrowserOptions
"/> on the current
19
/// Gets or sets the <see cref="
BrowserOptions
"/> to merge.
22
public
BrowserOptions
Options { get; set; } = default!;
38
var
existing =
BrowserOptions
.GetBrowserOptions(HttpContext);
45
internal static void MergeInto(
BrowserOptions
target,
BrowserOptions
source)
Builder\RazorComponentsEndpointConventionBuilderExtensions.cs (4)
68
/// Configures a <see cref="
BrowserOptions
"/> that will be emitted as a DOM comment
72
/// <param name="configureOptions">An action to configure the <see cref="
BrowserOptions
"/>.</param>
76
Action<
BrowserOptions
> configureOptions)
81
var
options = new BrowserOptions();
Rendering\BrowserOptionsJsonContext.cs (1)
11
[JsonSerializable(typeof(
BrowserOptions
))]
Rendering\EndpointHtmlRenderer.Streaming.cs (2)
446
var
config =
BrowserOptions
.GetBrowserOptions(_httpContext);
Microsoft.AspNetCore.Components.Server.AutoPause (5)
AutoPauseBrowserOptionsExtensions.cs (5)
10
/// Extension methods for enabling auto-pause through <see cref="
BrowserOptions
"/>.
19
/// <param name="options">The <see cref="
BrowserOptions
"/> to configure.</param>
21
/// <returns>The same <see cref="
BrowserOptions
"/> instance for chaining.</returns>
22
public static
BrowserOptions
AddAutoPause(this
BrowserOptions
options, Action<AutoPauseBrowserOptions>? configure = null)