Table of Contents

Method TestDataSourceAsync

Namespace
ReportWright.Blazor.Designer
Assembly
ReportWright.Blazor.Designer.dll

TestDataSourceAsync(byte[], string, string?, CancellationToken)

Tests one of the definition's data sources: connects, runs nothing.

public virtual Task<DataSourceTestResult?> TestDataSourceAsync(byte[] rdl, string dataSourceName, string? path, CancellationToken cancellationToken)

Parameters

rdl byte[]

The current definition.

dataSourceName string

The data source.

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<DataSourceTestResult>

The result, or null when the host offers no test.