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
servicesIServiceCollectionThe services.
configureAction<ReportWrightOptions>Configures the options, or null for the defaults.
Returns
- IServiceCollection
The services.