Table of Contents

Method CreateDataProviderAsync

Namespace
ReportWright.Blazor.Server
Assembly
ReportWright.Blazor.Server.dll

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.

public override Task<ReportDataProvider> CreateDataProviderAsync(string path, ReportDefinition definition, IReadOnlyDictionary<string, ReportParameterValue> parameters, CancellationToken cancellationToken)

Parameters

path string

The report's path.

definition ReportDefinition

The definition about to run.

parameters IReadOnlyDictionary<string, ReportParameterValue>

The parameter values the run uses.

cancellationToken CancellationToken

Cancels the work.

Returns

Task<ReportDataProvider>

The provider the engine reads.