Class WorkerInfo
- Namespace
- Virtufin.WorkManager.Contracts
- Assembly
- Virtufin.WorkManager.dll
Information about a worker instance.
public sealed record WorkerInfo : IEquatable<WorkerInfo>
- Inheritance
-
WorkerInfo
- Implements
- Inherited Members
Constructors
WorkerInfo(Guid, string, string, string, string?, DateTime, WorkerStatus)
Information about a worker instance.
public WorkerInfo(Guid Id, string MimeType, string Language, string Topic, string? Group, DateTime CreatedAt, WorkerStatus Status)
Parameters
IdGuidThe unique identifier.
MimeTypestringThe MIME type of the code.
LanguagestringThe programming language.
TopicstringThe topic to subscribe to.
GroupstringThe optional group identifier.
CreatedAtDateTimeThe creation timestamp.
StatusWorkerStatusThe current status.
Properties
CreatedAt
The creation timestamp.
public DateTime CreatedAt { get; init; }
Property Value
Group
The optional group identifier.
public string? Group { get; init; }
Property Value
Id
The unique identifier.
public Guid Id { get; init; }
Property Value
Language
The programming language.
public string Language { get; init; }
Property Value
MimeType
The MIME type of the code.
public string MimeType { get; init; }
Property Value
Status
The current status.
public WorkerStatus Status { get; init; }
Property Value
Topic
The topic to subscribe to.
public string Topic { get; init; }