PdfEngine(IOptions, ILoggerFactory?) Constructor

Definition

Namespace Broadside
Assembly Broadside.dll

Initializes a new instance of the PdfEngine class from the options pattern: the constructor dependency injection uses, which AddBroadside(IServiceCollection) registers.

public PdfEngine(IOptions<PdfOptions> options, ILoggerFactory? loggerFactory = null)

Parameters

options
IOptions<PdfOptions>

The options. Their is read once, here, and copied, so the engine behaves exactly like one built with PdfEngine(PdfOptions) from the same values.

loggerFactory
ILoggerFactory?

Where diagnostics are logged, unless the options name their own logger factory through WithLoggerFactory(ILoggerFactory?); null logs nothing.

Remarks

Spec #33, user stories 43 and 45: one engine for the fluent and the hosted paths.