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\BrowserOptionsHttpContextExtensions.cs (1)
29
var config = metadataConfig ?? new
BrowserOptions
();
Builder\RazorComponentsEndpointConventionBuilderExtensions.cs (1)
81
var options = new
BrowserOptions
();
49 references to BrowserOptions
Microsoft.AspNetCore.Components.Endpoints (49)
_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).WebAssembly,
88
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.
BrowserOptions
).GetProperty("WebAssembly", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Components.WebAssemblyBrowserOptions), 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).Server,
109
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.
BrowserOptions
).GetProperty("Server", 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).Ssr,
130
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.
BrowserOptions
).GetProperty("Ssr", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Components.SsrBrowserOptions), 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.WebAssemblyBrowserOptions __value_WebAssembly = ((global::Microsoft.AspNetCore.Components.
BrowserOptions
)value).WebAssembly;
163
global::Microsoft.AspNetCore.Components.InteractiveServerBrowserOptions __value_Server = ((global::Microsoft.AspNetCore.Components.
BrowserOptions
)value).Server;
169
global::Microsoft.AspNetCore.Components.SsrBrowserOptions __value_Ssr = ((global::Microsoft.AspNetCore.Components.
BrowserOptions
)value).Ssr;
_generated\32\BrowserOptionsJsonContext.GetJsonTypeInfo.g.cs (1)
30
if (type == typeof(global::Microsoft.AspNetCore.Components.
BrowserOptions
))
BrowserConfiguration\BrowserOptionsHttpContextExtensions.cs (8)
9
/// Extension methods on <see cref="HttpContext"/> for accessing <see cref="
BrowserOptions
"/>.
16
/// Gets the <see cref="
BrowserOptions
"/> for the current request.
20
/// <returns>The <see cref="
BrowserOptions
"/> for the current request.</returns>
21
public static
BrowserOptions
GetBrowserOptions(this HttpContext context)
28
var
metadataConfig = context.GetEndpoint()?.Metadata.GetMetadata<
BrowserOptions
>();
29
var
config = metadataConfig ?? new BrowserOptions();
34
return (
BrowserOptions
)result!;
BrowserConfiguration\ConfigureBrowser.cs (6)
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!;
41
var
existing = HttpContext.GetBrowserOptions();
48
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 (1)
347
var
config = _httpContext.GetBrowserOptions();