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
CodeSourceCodeSourceThe source of the worker's code.
MimeTypestringThe MIME type of the code.
TopicsList<string>The topics to subscribe to (one or more). A triggering CloudEvent arriving on any of them is dispatched to this worker.
ConfigDictionary<string, string>Worker-instance defaults, immutable after creation (see Config).
TagsDictionary<string, string>
Properties
CodeSource
The source of the worker's code.
public CodeSource CodeSource { get; init; }
Property Value
Config
Worker-instance defaults, immutable after creation (see Config).
public Dictionary<string, string>? Config { get; init; }
Property Value
MimeType
The MIME type of the code.
public string MimeType { get; init; }
Property Value
Tags
public Dictionary<string, string>? Tags { get; init; }
Property Value
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; }