| File: RenderMode\InteractiveWebAssemblyRenderMode.cs | Web Access |
| Project: src\aspnetcore\src\Components\Web\src\Microsoft.AspNetCore.Components.Web.csproj (Microsoft.AspNetCore.Components.Web) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.Web; /// <summary> /// A <see cref="IComponentRenderMode"/> indicating that the component should be rendered interactively on the client using WebAssembly. /// </summary> public class InteractiveWebAssemblyRenderMode : IComponentRenderMode { /// <summary> /// Constructs an instance of <see cref="InteractiveWebAssemblyRenderMode"/>. /// </summary> public InteractiveWebAssemblyRenderMode() : this(true) { } /// <summary> /// Constructs an instance of <see cref="InteractiveWebAssemblyRenderMode"/> /// </summary> /// <param name="prerender">A flag indicating whether the component should first prerender on the server. The default value is true.</param> public InteractiveWebAssemblyRenderMode(bool prerender) { Prerender = prerender; } /// <summary> /// A flag indicating whether the component should first prerender on the server. The default value is true. /// </summary> public bool Prerender { get; } }