AddBroadside(IServiceCollection, Action) Method

Definition

Assembly Broadside.dll

Registers the PdfEngine singleton and its PdfOptions, configured by configure.

public static IServiceCollection AddBroadside(this IServiceCollection services, Action<PdfOptions> configure)

Parameters

services
IServiceCollection

The service collection.

configure
Action<PdfOptions>

Sets the options fluently, as on the static entry point, for instance options => options.UseStrict(). Calling AddBroadside again registers no second engine; it adds its delegate, which runs after this one.

Returns

IServiceCollection
services, for chaining.