Table of Contents

Class CodeSourceUrl

Namespace
Virtufin.WorkManager.Contracts
Assembly
Virtufin.WorkManager.dll

Represents code sourced from a URL.

public sealed record CodeSourceUrl : CodeSource, IEquatable<CodeSource>, IEquatable<CodeSourceUrl>
Inheritance
CodeSourceUrl
Implements
Inherited Members

Constructors

CodeSourceUrl(Uri, string?, string?)

Represents code sourced from a URL.

public CodeSourceUrl(Uri Url, string? ContentSha256 = null, string? NamedCredential = null)

Parameters

Url Uri

The URL pointing to the code.

ContentSha256 string

Optional SHA-256 digest of the expected content, for integrity verification.

NamedCredential string

Optional server-resolved credential reference (e.g. "virtufin"), persisted so a worker recovery re-fetch can still authorize itself. Deliberately the ONLY credential material ever persisted here -- a directly-supplied Basic/Bearer secret (see Virtufin.WorkManager.Protos.SourceCredential) is never written to this record or to any WorkerConfig/HistoryEntry state; it flows as a transient, per-call parameter through WorkManager.CreateWorkerAsync/LoadCode and is discarded after the fetch it authorizes. A worker created with a raw Basic/Bearer credential therefore won't have one available on recovery after a WorkManager restart -- a deliberate, documented tradeoff, not an oversight.

Properties

ContentSha256

Optional SHA-256 digest of the expected content, for integrity verification.

public string? ContentSha256 { get; init; }

Property Value

string

NamedCredential

Optional server-resolved credential reference (e.g. "virtufin"), persisted so a worker recovery re-fetch can still authorize itself. Deliberately the ONLY credential material ever persisted here -- a directly-supplied Basic/Bearer secret (see Virtufin.WorkManager.Protos.SourceCredential) is never written to this record or to any WorkerConfig/HistoryEntry state; it flows as a transient, per-call parameter through WorkManager.CreateWorkerAsync/LoadCode and is discarded after the fetch it authorizes. A worker created with a raw Basic/Bearer credential therefore won't have one available on recovery after a WorkManager restart -- a deliberate, documented tradeoff, not an oversight.

public string? NamedCredential { get; init; }

Property Value

string

Url

The URL pointing to the code.

public Uri Url { get; init; }

Property Value

Uri