Table of Contents

Method GetDataSourcesAsync

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

GetDataSourcesAsync(string?, CancellationToken)

Lists the data sources the host offers authors, by name and kind, for the "new data source" dialog.

public override Task<IReadOnlyList<DataSourceInfo>> GetDataSourcesAsync(string? path, CancellationToken cancellationToken)

Parameters

path string

The report's path, for the host's permission check, or null for an unsaved report.

cancellationToken CancellationToken

Cancels the request.

Returns

Task<IReadOnlyList<DataSourceInfo>>

The data sources; empty when the host lists none, and the author types a name.

Exceptions

UnauthorizedAccessException

The user may not edit the report.