Method CreateDataProviderAsync
- Namespace
- ReportWright.Blazor
- Assembly
- ReportWright.Blazor.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 abstract Task<ReportDataProvider> CreateDataProviderAsync(string path, ReportDefinition definition, IReadOnlyDictionary<string, ReportParameterValue> parameters, CancellationToken cancellationToken)
Parameters
pathstringThe report's path.
definitionReportDefinitionThe definition about to run.
parametersIReadOnlyDictionary<string, ReportParameterValue>The parameter values the run uses.
cancellationTokenCancellationTokenCancels the work.
Returns
- Task<ReportDataProvider>
The provider the engine reads.