BrowserLease
Namespace: E2E.Engine
public class BrowserLeaseOne leased browser, as CancellationToken) returns it and
CancellationToken) gets it back. A provider may derive from it and keep further fields:
release gets that same object, while only the declared fields travel from the runner to the worker that attaches to it.
Inheritance: object
Properties
Section titled “Properties”CdpEndpoint
Section titled “CdpEndpoint”public string CdpEndpoint { get; init; }ws://, wss://, or http:// endpoint to attach to, over CDP unless Protocol says otherwise.
Value: string
public string Id { get; init; }The provider’s handle on the lease (a session id), named in progress lines and handed back to release.
Value: string
Protocol
Section titled “Protocol”public BrowserProtocol Protocol { get; init; }What CdpEndpoint speaks. A Playwright lease needs Worker scope and no ReconnectEndpoint: its connection cannot be reattached. .NET-only.
Value: BrowserProtocol
ReconnectEndpoint
Section titled “ReconnectEndpoint”public string? ReconnectEndpoint { get; init; }Endpoint to reattach to the same browser after a transport drop, when it differs from CdpEndpoint; only meaningful for a per-attempt lease.
Value: string