Interface IBrowserLease
- Namespace
- CobaltPdf.WebKit.Infrastructure.Pooling
- Assembly
- CobaltPDF.WebKit.dll
An exclusive lease on one warm render worker from the pool. Dispose to return the worker (or have it recycled if it's exhausted / unhealthy).
The lease is the public-facing handle; the internal worker object is accessed through UseCount for diagnostics. Callers obtain a lease from AcquireAsync(CancellationToken) and dispatch jobs through the pool manager's helper APIs rather than poking the worker directly.
public interface IBrowserLease : IAsyncDisposable
- Inherited Members
Properties
UseCount
Number of jobs this leased worker has processed so far (lifetime, not just this lease).
int UseCount { get; }