Class BackgroundWorkItem
- Namespace
- Signal.Application.Background
- Assembly
- Signal.Application.dll
Work queued by IBackgroundWorkQueue.
public sealed record BackgroundWorkItem : IEquatable<BackgroundWorkItem>
- Inheritance
-
BackgroundWorkItem
- Implements
- Inherited Members
Constructors
BackgroundWorkItem(PhoneNumber, Recipient, Func<BackgroundWork, Task>)
Work queued by IBackgroundWorkQueue.
public BackgroundWorkItem(PhoneNumber Account, Recipient Conversation, Func<BackgroundWork, Task> Work)
Parameters
AccountPhoneNumberThe account replies are sent from.
ConversationRecipientWhere replies go.
WorkFunc<BackgroundWork, Task>The work to run.
Properties
Account
The account replies are sent from.
public PhoneNumber Account { get; init; }
Property Value
Conversation
Where replies go.
public Recipient Conversation { get; init; }
Property Value
Sender
Who triggered the work, if it was queued from a message; required for prompts.
public Sender? Sender { get; init; }
Property Value
Work
The work to run.
public Func<BackgroundWork, Task> Work { get; init; }