Class WorkerConfig
- Namespace
- Virtufin.WorkManager.Contracts
- Assembly
- Virtufin.WorkManager.dll
Configuration for a worker instance.
public sealed record WorkerConfig : IEquatable<WorkerConfig>
- Inheritance
-
WorkerConfig
- Implements
- Inherited Members
Constructors
WorkerConfig(Guid, CodeSource, string, string, string?, DateTime, List<HistoryEntry>)
Configuration for a worker instance.
public WorkerConfig(Guid Id, CodeSource CodeSource, string MimeType, string Topic, string? Group, DateTime CreatedAt, List<HistoryEntry> History)
Parameters
IdGuidThe unique identifier.
CodeSourceCodeSourceThe source of the worker's code.
MimeTypestringThe MIME type of the code.
TopicstringThe topic to subscribe to.
GroupstringThe optional group identifier.
CreatedAtDateTimeThe creation timestamp.
HistoryList<HistoryEntry>The history of code changes.
Properties
CodeSource
The source of the worker's code.
public CodeSource CodeSource { get; init; }
Property Value
CreatedAt
The creation timestamp.
public DateTime CreatedAt { get; init; }
Property Value
Group
The optional group identifier.
public string? Group { get; init; }
Property Value
History
The history of code changes.
public List<HistoryEntry> History { get; init; }
Property Value
Id
The unique identifier.
public Guid Id { get; init; }
Property Value
MimeType
The MIME type of the code.
public string MimeType { get; init; }
Property Value
Topic
The topic to subscribe to.
public string Topic { get; init; }