Table of Contents

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

Id Guid

The unique identifier.

CodeSource CodeSource

The source of the worker's code.

MimeType string

The MIME type of the code.

Topic string

The topic to subscribe to.

Group string

The optional group identifier.

CreatedAt DateTime

The creation timestamp.

History List<HistoryEntry>

The history of code changes.

Properties

CodeSource

The source of the worker's code.

public CodeSource CodeSource { get; init; }

Property Value

CodeSource

CreatedAt

The creation timestamp.

public DateTime CreatedAt { get; init; }

Property Value

DateTime

Group

The optional group identifier.

public string? Group { get; init; }

Property Value

string

History

The history of code changes.

public List<HistoryEntry> History { get; init; }

Property Value

List<HistoryEntry>

Id

The unique identifier.

public Guid Id { get; init; }

Property Value

Guid

MimeType

The MIME type of the code.

public string MimeType { get; init; }

Property Value

string

Topic

The topic to subscribe to.

public string Topic { get; init; }

Property Value

string