Class ServerRenderContext
Implements
Namespace: Neon.Blazor
Assembly: Neon.Blazor.dll
Syntax
public class ServerRenderContext : IRenderContext
Constructors
ServerRenderContext(IHttpContextAccessor)
Constructor.
Declaration
public ServerRenderContext(IHttpContextAccessor httpContextAccessor = null)
Parameters
Type | Name | Description |
---|---|---|
IHttpContextAccessor | httpContextAccessor |
Properties
IsClient
Whether the code is running on the client.
Declaration
public bool IsClient { get; }
Property Value
Type | Description |
---|---|
bool |
IsPrerendering
Whether the current request is prerendering.
Declaration
public bool IsPrerendering { get; }
Property Value
Type | Description |
---|---|
bool |
IsServer
Whether the code is running on the server.
Declaration
public bool IsServer { get; }
Property Value
Type | Description |
---|---|
bool |