Table of Contents

Class ReportInterceptorServiceCollectionExtensions

Namespace
GroupeIsa.Neos.Application.Reports
Assembly
GroupeIsa.Neos.Application.Abstractions.dll

Extension methods for registering report generated interceptors.

public static class ReportInterceptorServiceCollectionExtensions
Inheritance
ReportInterceptorServiceCollectionExtensions
Inherited Members

Methods

AddReportGeneratedInterceptor<TInterceptor>(IServiceCollection)

Registers a report generated interceptor that will be invoked for all report templates.

public static IServiceCollection AddReportGeneratedInterceptor<TInterceptor>(this IServiceCollection services) where TInterceptor : class, IReportGeneratedInterceptor

Parameters

services IServiceCollection

The service collection.

Returns

IServiceCollection

The service collection for chaining.

Type Parameters

TInterceptor

The type of the interceptor to register.

Examples

services.AddReportGeneratedInterceptor<AuditReportInterceptor>();

AddReportGeneratedInterceptor<TInterceptor>(IServiceCollection, string)

Registers a report generated interceptor that will be invoked only for the specified report template.

public static IServiceCollection AddReportGeneratedInterceptor<TInterceptor>(this IServiceCollection services, string templateName) where TInterceptor : class, IReportGeneratedInterceptor

Parameters

services IServiceCollection

The service collection.

templateName string

The report template name for which the interceptor should be invoked.

Returns

IServiceCollection

The service collection for chaining.

Type Parameters

TInterceptor

The type of the interceptor to register.

Examples

services.AddReportGeneratedInterceptor<InvoiceInterceptor>("Invoice");

AddReportGeneratedInterceptor<TInterceptor>(IServiceCollection, params string[])

Registers a report generated interceptor that will be invoked for the specified report templates.

public static IServiceCollection AddReportGeneratedInterceptor<TInterceptor>(this IServiceCollection services, params string[] templateNames) where TInterceptor : class, IReportGeneratedInterceptor

Parameters

services IServiceCollection

The service collection.

templateNames string[]

The report template names for which the interceptor should be invoked.

Returns

IServiceCollection

The service collection for chaining.

Type Parameters

TInterceptor

The type of the interceptor to register.

Examples

services.AddReportGeneratedInterceptor<InvoiceInterceptor>("Invoice", "OrderConfirmation");