Table of Contents

Class CobaltServiceExtensions

Namespace
CobaltPdf.Extensions
Assembly
CobaltPdf.dll
public static class CobaltServiceExtensions
Inheritance
CobaltServiceExtensions
Inherited Members

Methods

AddCobaltLibrary(IServiceCollection, Action<PoolOptions>?)

Registers the Cobalt PDF services with the dependency injection container. This will configure the shared browser pool manager as a singleton and make 'PdfDocument' available as a transient service.

public static IServiceCollection AddCobaltLibrary(this IServiceCollection services, Action<PoolOptions>? configureOptions = null)

Parameters

services IServiceCollection

The service collection.

configureOptions Action<PoolOptions>

An optional action to configure pool options.

Returns

IServiceCollection