HtmlRenderer Class

Definition

Provides a mechanism for rendering components non-interactively as HTML markup.

public sealed class HtmlRenderer : IAsyncDisposable, IDisposable
type HtmlRenderer = class
    interface IDisposable
    interface IAsyncDisposable
Public NotInheritable Class HtmlRenderer
Implements IAsyncDisposable, IDisposable
Inheritance
HtmlRenderer
Implements

Constructors

HtmlRenderer(IServiceProvider, ILoggerFactory)

Constructs an instance of HtmlRenderer.

Properties

Dispatcher

Gets the Dispatcher associated with this instance. Any calls to RenderComponentAsync<TComponent>() or BeginRenderingComponent<TComponent>() must be performed using this Dispatcher.

Methods

BeginRenderingComponent(Type)

Adds an instance of the specified component and instructs it to render. The resulting content represents the initial synchronous rendering output, which may later change. To wait for the component hierarchy to complete any asynchronous operations such as loading, await QuiescenceTask before reading content from the HtmlRootComponent.

BeginRenderingComponent(Type, ParameterView)

Adds an instance of the specified component and instructs it to render. The resulting content represents the initial synchronous rendering output, which may later change. To wait for the component hierarchy to complete any asynchronous operations such as loading, await QuiescenceTask before reading content from the HtmlRootComponent.

BeginRenderingComponent<TComponent>()

Adds an instance of the specified component and instructs it to render. The resulting content represents the initial synchronous rendering output, which may later change. To wait for the component hierarchy to complete any asynchronous operations such as loading, await QuiescenceTask before reading content from the HtmlRootComponent.

BeginRenderingComponent<TComponent>(ParameterView)

Adds an instance of the specified component and instructs it to render. The resulting content represents the initial synchronous rendering output, which may later change. To wait for the component hierarchy to complete any asynchronous operations such as loading, await QuiescenceTask before reading content from the HtmlRootComponent.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

DisposeAsync()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.

RenderComponentAsync(Type)

Adds an instance of the specified component and instructs it to render, waiting for the component hierarchy to complete asynchronous tasks such as loading.

RenderComponentAsync(Type, ParameterView)

Adds an instance of the specified component and instructs it to render, waiting for the component hierarchy to complete asynchronous tasks such as loading.

RenderComponentAsync<TComponent>()

Adds an instance of the specified component and instructs it to render, waiting for the component hierarchy to complete asynchronous tasks such as loading.

RenderComponentAsync<TComponent>(ParameterView)

Adds an instance of the specified component and instructs it to render, waiting for the component hierarchy to complete asynchronous tasks such as loading.

Applies to