Table of Contents

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, List<string>, DateTime, WorkerStatus, Dictionary<string, string>?, Dictionary<string, string>?)

Information about a worker instance.

public WorkerInfo(Guid Id, string MimeType, string Language, List<string> Topics, DateTime CreatedAt, WorkerStatus Status, Dictionary<string, string>? Config = null, Dictionary<string, string>? Tags = null)

Parameters

Id Guid

The unique identifier.

MimeType string

The MIME type of the code.

Language string

The programming language.

Topics List<string>

The topics to subscribe to (one or more).

CreatedAt DateTime

The creation timestamp.

Status WorkerStatus

The current status.

Config Dictionary<string, string>

Worker-instance defaults set at creation (see Config).

Tags Dictionary<string, string>

Properties

Config

Worker-instance defaults set at creation (see Config).

public Dictionary<string, string>? Config { get; init; }

Property Value

Dictionary<string, string>

CreatedAt

The creation timestamp.

public DateTime CreatedAt { get; init; }

Property Value

DateTime

Id

The unique identifier.

public Guid Id { get; init; }

Property Value

Guid

Language

The programming language.

public string Language { get; init; }

Property Value

string

MimeType

The MIME type of the code.

public string MimeType { get; init; }

Property Value

string

Status

The current status.

public WorkerStatus Status { get; init; }

Property Value

WorkerStatus

Tags

public Dictionary<string, string>? Tags { get; init; }

Property Value

Dictionary<string, string>

Topics

The topics to subscribe to (one or more).

public List<string> Topics { get; init; }

Property Value

List<string>