Table of Contents

Constructor LocalReportDesignerBackend

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

LocalReportDesignerBackend(ReportViewerBackend, Func<CancellationToken, Task<IReadOnlyList<string>>>, Func<string, CancellationToken, Task<byte[]>>, Func<string, byte[], CancellationToken, Task>, Func<byte[], string, string?, CancellationToken, Task<IReadOnlyList<DesignerField>?>>?)

Initializes the backend.

public LocalReportDesignerBackend(ReportViewerBackend viewer, Func<CancellationToken, Task<IReadOnlyList<string>>> list, Func<string, CancellationToken, Task<byte[]>> load, Func<string, byte[], CancellationToken, Task> save, Func<byte[], string, string?, CancellationToken, Task<IReadOnlyList<DesignerField>?>>? discover = null)

Parameters

viewer ReportViewerBackend

The viewer backend for previews.

list Func<CancellationToken, Task<IReadOnlyList<string>>>

Lists the store.

load Func<string, CancellationToken, Task<byte[]>>

Loads a report's bytes.

save Func<string, byte[], CancellationToken, Task>

Saves a report's bytes.

discover Func<byte[], string, string, CancellationToken, Task<IReadOnlyList<DesignerField>>>

Discovers a dataset's fields, or null for no discovery.