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
UrlUriThe URL pointing to the code.
ContentSha256stringOptional SHA-256 digest of the expected content, for integrity verification.
NamedCredentialstringOptional server-resolved credential reference (e.g.
"virtufin"), persisted so the Runtime can re-fetch the code when it reloads the worker. The only credential material ever persisted: a directly supplied Basic/Bearer secret (SourceCredential) is used for one fetch and never written to any record.
Properties
ContentSha256
Optional SHA-256 digest of the expected content, for integrity verification.
public string? ContentSha256 { get; init; }
Property Value
NamedCredential
Optional server-resolved credential reference (e.g. "virtufin"),
persisted so the Runtime can re-fetch the code when it reloads the worker.
The only credential material ever persisted: a directly supplied
Basic/Bearer secret (SourceCredential) is used for
one fetch and never written to any record.
public string? NamedCredential { get; init; }
Property Value
Url
The URL pointing to the code.
public Uri Url { get; init; }