Method GetDataSourcesAsync
- Namespace
- ReportWright.Blazor.Designer
- Assembly
- ReportWright.Blazor.Designer.dll
GetDataSourcesAsync(string?, CancellationToken)
Lists the data sources the host offers authors, by name and kind, for the "new data source" dialog.
public virtual Task<IReadOnlyList<DataSourceInfo>> GetDataSourcesAsync(string? path, CancellationToken cancellationToken)
Parameters
pathstringThe report's path, for the host's permission check, or null for an unsaved report.
cancellationTokenCancellationTokenCancels the request.
Returns
- Task<IReadOnlyList<DataSourceInfo>>
The data sources; empty when the host lists none, and the author types a name.