Method LoadAsync
- Namespace
- ReportWright.Blazor.Viewer
- Assembly
- ReportWright.Blazor.Viewer.dll
LoadAsync(string, IReadOnlyDictionary<string, ReportParameterValue>?, bool, bool, CancellationToken)
Loads a report: its definition, layout and prompts. Any previous report, sorts and toggles are dropped.
public Task LoadAsync(string path, IReadOnlyDictionary<string, ReportParameterValue>? hostParameters, bool hideHostParameters, bool run, CancellationToken cancellationToken)
Parameters
pathstringThe report's path in the backend.
hostParametersIReadOnlyDictionary<string, ReportParameterValue>Values the host supplies, which the user's own values start from; null for none.
hideHostParametersboolWhether the supplied parameters are kept out of the parameter bar.
runboolWhether to run the report once the prompts are resolved.
cancellationTokenCancellationTokenCancels the work.
Returns
- Task
A task that completes when the report is loaded (and run, when asked).