-
Notifications
You must be signed in to change notification settings - Fork 10k
/
InteractiveServerRenderMode.cs
31 lines (27 loc) · 1.13 KB
/
InteractiveServerRenderMode.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// 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 server using Blazor Server hosting.
/// </summary>
public class InteractiveServerRenderMode : IComponentRenderMode
{
/// <summary>
/// Constructs an instance of <see cref="InteractiveServerRenderMode"/>.
/// </summary>
public InteractiveServerRenderMode() : this(true)
{
}
/// <summary>
/// Constructs an instance of <see cref="InteractiveServerRenderMode"/>
/// </summary>
/// <param name="prerender">A flag indicating whether the component should first prerender on the server. The default value is true.</param>
public InteractiveServerRenderMode(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; }
}