Table of Contents

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

Account PhoneNumber

The account replies are sent from.

Conversation Recipient

Where replies go.

Work Func<BackgroundWork, Task>

The work to run.

Properties

Account

The account replies are sent from.

public PhoneNumber Account { get; init; }

Property Value

PhoneNumber

Conversation

Where replies go.

public Recipient Conversation { get; init; }

Property Value

Recipient

Sender

Who triggered the work, if it was queued from a message; required for prompts.

public Sender? Sender { get; init; }

Property Value

Sender

Work

The work to run.

public Func<BackgroundWork, Task> Work { get; init; }

Property Value

Func<BackgroundWork, Task>