Skip to content

BrowserRequest

Namespace: E2E.Engine

public sealed record BrowserRequest : IEquatable<BrowserRequest>

What the engine asks a provider for: one browser for one worker slot, or for one attempt, of a run.

Inheritance: object

Implements: IEquatable<BrowserRequest>

View source

public string? AttemptId { get; init; }

Present only for a per-attempt lease.

Value: string

View source

public required IReadOnlyDictionary<string, string?> Env { get; init; }

The run’s environment: where a provider reads its token from, never the process environment.

Value: IReadOnlyDictionary<string, string>

View source

public required Action<string> Log { get; init; }

Reports one line of progress to the run’s reporter (a session URL to watch), from the runner and from a worker alike.

Value: Action<string>

View source

public required string RunId { get; init; }

The run id, for naming the session at the provider.

Value: string

View source

public required int Slot { get; init; }

Worker slot the browser serves, 0 to Slots - 1. In Worker scope Slots leases are acquired at once.

Value: int

View source

public required int Slots { get; init; }

Worker slots the run uses for this target, in all.

Value: int

View source

public required string TargetName { get; init; }

The target the browser serves.

Value: string

View source