Class PoolOptions
- Namespace
- CobaltPdf.Configuration
- Assembly
- CobaltPdf.dll
Provides configuration options for the browser pool.
public class PoolOptions
- Inheritance
-
PoolOptions
- Inherited Members
Properties
BrowserLeaseTimeout
The maximum time a request can wait for a free browser before throwing a TimeoutException. Defaults to 30 seconds.
public TimeSpan BrowserLeaseTimeout { get; set; }
Property Value
MaxSize
The maximum number of concurrent browser instances allowed. Requests beyond this limit will wait. Defaults to 5.
public int MaxSize { get; set; }
Property Value
MaxUsesPerBrowser
The maximum number of times a single browser instance will be used before it is recycled (closed and replaced). This prevents memory leaks from long-running browser processes. Defaults to 100.
public int MaxUsesPerBrowser { get; set; }
Property Value
MinSize
The minimum number of browser instances to keep "warm" in the pool. Defaults to 1.
public int MinSize { get; set; }