Class ServerReportViewerBackend
- Namespace
- ReportWright.Blazor.Server
- Assembly
- ReportWright.Blazor.Server.dll
The viewer's backend in a Blazor Server application: the engine runs in the server process over the host's ReportRunner, so definitions come from its store, data goes through its router and exports use its format registry. Before every load and export it asks the host's ReportPermissions about the signed-in user, as the REST API does.
public sealed class ServerReportViewerBackend : ReportViewerBackend
- Inheritance
-
ServerReportViewerBackend
- Inherited Members
Constructors
- ServerReportViewerBackend(ReportRunner, AuthenticationStateProvider?)
Initializes the backend.
Properties
- ExportFormats
Gets the export format names on offer.
- Fonts
Gets the font engine the viewer measures with — the same faces on every side.
- Now
Gets the clock a run reads for
Globals!ExecutionTime.
Methods
- CreateDataProviderAsync(string, ReportDefinition, IReadOnlyDictionary<string, ReportParameterValue>, CancellationToken)
Supplies the data for one run. In-process this is the live provider; over HTTP every dataset's rows are fetched here first, because the engine asks synchronously and a browser cannot answer that way.
- CreateSubreportResolver(string)
Resolves subreports for a run, or null when the host offers none.
- ExportAsync(string, ReportPageModel, IReadOnlyDictionary<string, ReportParameterValue>, string, CancellationToken)
Exports a run.
- LoadDefinitionAsync(string, CancellationToken)
Loads a report definition.