3 instantiations of BrowserOptions
Microsoft.AspNetCore.Components.Endpoints (3)
_generated\19\BrowserOptionsJsonContext.BrowserOptions.g.cs (1)
31ObjectCreator = () => new global::Microsoft.AspNetCore.Components.BrowserOptions(),
BrowserConfiguration\BrowserOptions.cs (1)
51var options = metadataOptions ?? new BrowserOptions();
Builder\RazorComponentsEndpointConventionBuilderExtensions.cs (1)
81var options = new BrowserOptions();
55 references to BrowserOptions
Microsoft.AspNetCore.Components.Endpoints (50)
_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).InteractiveWebAssembly, 88AttributeProviderFactory = 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), 99DeclaringType = typeof(global::Microsoft.AspNetCore.Components.BrowserOptions), 101Getter = static obj => ((global::Microsoft.AspNetCore.Components.BrowserOptions)obj).InteractiveServer, 109AttributeProviderFactory = 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), 120DeclaringType = typeof(global::Microsoft.AspNetCore.Components.BrowserOptions), 122Getter = static obj => ((global::Microsoft.AspNetCore.Components.BrowserOptions)obj).StaticServer, 130AttributeProviderFactory = 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), 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.InteractiveWebAssemblyBrowserOptions __value_InteractiveWebAssembly = ((global::Microsoft.AspNetCore.Components.BrowserOptions)value).InteractiveWebAssembly; 163global::Microsoft.AspNetCore.Components.InteractiveServerBrowserOptions __value_InteractiveServer = ((global::Microsoft.AspNetCore.Components.BrowserOptions)value).InteractiveServer; 169global::Microsoft.AspNetCore.Components.StaticServerBrowserOptions __value_StaticServer = ((global::Microsoft.AspNetCore.Components.BrowserOptions)value).StaticServer;
_generated\34\BrowserOptionsJsonContext.GetJsonTypeInfo.g.cs (1)
30if (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> 43public static BrowserOptions GetBrowserOptions(HttpContext context) 50var metadataOptions = context.GetEndpoint()?.Metadata.GetMetadata<BrowserOptions>(); 51var options = metadataOptions ?? new BrowserOptions(); 56return (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. 22public BrowserOptions Options { get; set; } = default!; 38var existing = BrowserOptions.GetBrowserOptions(HttpContext); 45internal 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 (2)
446var 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> 22public static BrowserOptions AddAutoPause(this BrowserOptions options, Action<AutoPauseBrowserOptions>? configure = null)