Table of Contents

Class CreateWorkerRequest

Namespace
Virtufin.WorkManager.Contracts
Assembly
Virtufin.WorkManager.dll

Request to create a new worker.

public sealed record CreateWorkerRequest : IEquatable<CreateWorkerRequest>
Inheritance
CreateWorkerRequest
Implements
Inherited Members

Constructors

CreateWorkerRequest(CodeSource, string, List<string>, Dictionary<string, string>?, Dictionary<string, string>?)

Request to create a new worker.

public CreateWorkerRequest(CodeSource CodeSource, string MimeType, List<string> Topics, Dictionary<string, string>? Config = null, Dictionary<string, string>? Tags = null)

Parameters

CodeSource CodeSource

The source of the worker's code.

MimeType string

The MIME type of the code.

Topics List<string>

The topics to subscribe to (one or more). A triggering CloudEvent arriving on any of them is dispatched to this worker.

Config Dictionary<string, string>

Worker-instance defaults, immutable after creation (see Config).

Tags Dictionary<string, string>

Properties

CodeSource

The source of the worker's code.

public CodeSource CodeSource { get; init; }

Property Value

CodeSource

Config

Worker-instance defaults, immutable after creation (see Config).

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

Property Value

Dictionary<string, string>

MimeType

The MIME type of the code.

public string MimeType { get; init; }

Property Value

string

Tags

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

Property Value

Dictionary<string, string>

Topics

The topics to subscribe to (one or more). A triggering CloudEvent arriving on any of them is dispatched to this worker.

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

Property Value

List<string>