Table of Contents

Method AddReportWright

Namespace
ReportWright.AspNetCore
Assembly
ReportWright.AspNetCore.dll

AddReportWright(IServiceCollection, Action<ReportWrightOptions>?)

Adds the runner, the session cache and the options. The host registers its own ReportStore, DataSourceResolver and ReportPermissions; the defaults (an empty in-memory store, a resolver that resolves nothing, allow-everything permissions) are for samples and tests.

public static IServiceCollection AddReportWright(this IServiceCollection services, Action<ReportWrightOptions>? configure = null)

Parameters

services IServiceCollection

The services.

configure Action<ReportWrightOptions>

Configures the options, or null for the defaults.

Returns

IServiceCollection

The services.