Skip to content

BrowserProviderDownloads

Namespace: E2E.Engine

public sealed record BrowserProviderDownloads : IEquatable<BrowserProviderDownloads>

How a download reaches the runner from a browser on another machine. The browser saves every file to its own disk, where the runner cannot open it, so the engine points the browser’s downloads at Dir there and reads each finished file back through ReadAsync.

Inheritance: object

Implements: IEquatable<BrowserProviderDownloads>

View source

public required string Dir { get; init; }

Absolute directory on the browser’s machine the browser saves downloads to; created by the browser if missing.

Value: string

View source

public required Func<BrowserLease, string, BrowserDownloadContext, CancellationToken, Task<byte[]>> ReadAsync { get; init; }

The bytes of one finished download, file an absolute path under Dir, read off the leased browser’s disk.

Value: Func<BrowserLease, string, BrowserDownloadContext, CancellationToken, Task<byte[]>>

View source