3 instantiations of BrowserOptions
Microsoft.AspNetCore.Components.Endpoints (3)
_generated\19\BrowserOptionsJsonContext.BrowserOptions.g.cs (1)
31ObjectCreator = () => new global::Microsoft.AspNetCore.Components.BrowserOptions(),
BrowserConfiguration\BrowserOptionsHttpContextExtensions.cs (1)
29var config = metadataConfig ?? new BrowserOptions();
Builder\RazorComponentsEndpointConventionBuilderExtensions.cs (1)
81var options = new BrowserOptions();
49 references to BrowserOptions
Microsoft.AspNetCore.Components.Endpoints (49)
_generated\19\BrowserOptionsJsonContext.BrowserOptions.g.cs (28)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.BrowserOptions>? _BrowserOptions; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.BrowserOptions> BrowserOptions 22get => _BrowserOptions ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.BrowserOptions>)Options.GetTypeInfo(typeof(global::Microsoft.AspNetCore.Components.BrowserOptions)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.BrowserOptions> Create_BrowserOptions(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.AspNetCore.Components.BrowserOptions>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.BrowserOptions> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.AspNetCore.Components.BrowserOptions> 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.BrowserOptions).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.AspNetCore.Components.BrowserOptions>(options, objectInfo); 58DeclaringType = typeof(global::Microsoft.AspNetCore.Components.BrowserOptions), 60Getter = static obj => ((global::Microsoft.AspNetCore.Components.BrowserOptions)obj).LogLevel, 61Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Components.BrowserOptions)obj).LogLevel = value!, 68AttributeProviderFactory = 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), 78DeclaringType = typeof(global::Microsoft.AspNetCore.Components.BrowserOptions), 80Getter = static obj => ((global::Microsoft.AspNetCore.Components.BrowserOptions)obj).WebAssembly, 88AttributeProviderFactory = 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), 99DeclaringType = typeof(global::Microsoft.AspNetCore.Components.BrowserOptions), 101Getter = static obj => ((global::Microsoft.AspNetCore.Components.BrowserOptions)obj).Server, 109AttributeProviderFactory = 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), 120DeclaringType = typeof(global::Microsoft.AspNetCore.Components.BrowserOptions), 122Getter = static obj => ((global::Microsoft.AspNetCore.Components.BrowserOptions)obj).Ssr, 130AttributeProviderFactory = 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), 141private void BrowserOptionsSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.AspNetCore.Components.BrowserOptions? value) 151global::Microsoft.Extensions.Logging.LogLevel? __value_LogLevel = ((global::Microsoft.AspNetCore.Components.BrowserOptions)value).LogLevel; 157global::Microsoft.AspNetCore.Components.WebAssemblyBrowserOptions __value_WebAssembly = ((global::Microsoft.AspNetCore.Components.BrowserOptions)value).WebAssembly; 163global::Microsoft.AspNetCore.Components.InteractiveServerBrowserOptions __value_Server = ((global::Microsoft.AspNetCore.Components.BrowserOptions)value).Server; 169global::Microsoft.AspNetCore.Components.SsrBrowserOptions __value_Ssr = ((global::Microsoft.AspNetCore.Components.BrowserOptions)value).Ssr;
_generated\32\BrowserOptionsJsonContext.GetJsonTypeInfo.g.cs (1)
30if (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> 21public static BrowserOptions GetBrowserOptions(this HttpContext context) 28var metadataConfig = context.GetEndpoint()?.Metadata.GetMetadata<BrowserOptions>(); 29var config = metadataConfig ?? new BrowserOptions(); 34return (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. 22public BrowserOptions Options { get; set; } = default!; 41var existing = HttpContext.GetBrowserOptions(); 48internal 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> 76Action<BrowserOptions> configureOptions) 81var options = new BrowserOptions();
Rendering\BrowserOptionsJsonContext.cs (1)
11[JsonSerializable(typeof(BrowserOptions))]
Rendering\EndpointHtmlRenderer.Streaming.cs (1)
347var config = _httpContext.GetBrowserOptions();