Skip to main content

NotificationAction class

Namespace: Arlecchino.Diagnostics · Assembly: Arlecchino

Something the user can do about a notification, offered when the entry is opened: stop the copy that is running, retry what failed, go to what it is about.

public sealed class NotificationAction : IEquatable<NotificationAction>

Implements IEquatable<T><NotificationAction>

Constructors

MemberSummary
NotificationAction(Func<string>, Action)Something the user can do about a notification, offered when the entry is opened: stop the copy that is running, retry what failed, go to what it is about.

Properties

MemberSummary
LabelWhat the action is called; a delegate, so it can be translated.
RunWhat it does. The dialog closes first, so this may open one of its own.

Methods

MemberSummary
Deconstruct(out Func<string>, out Action)

Constructors in detail

NotificationAction(Func<string>, Action)

public NotificationAction(Func<string> Label, Action Run);

Something the user can do about a notification, offered when the entry is opened: stop the copy that is running, retry what failed, go to what it is about.

Parameters

NameTypeDescription
LabelFunc<TResult><string>What the action is called; a delegate, so it can be translated.
RunActionWhat it does. The dialog closes first, so this may open one of its own.

Properties in detail

Label

public Func<string> Label { get; init; }

What the action is called; a delegate, so it can be translated.

Type Func<TResult><string>

Run

public Action Run { get; init; }

What it does. The dialog closes first, so this may open one of its own.

Type Action

Methods in detail

Deconstruct(out Func<string>, out Action)

public void Deconstruct(out Func<string> Label, out Action Run);

Parameters

NameTypeDescription
LabelFunc<TResult><string>
RunAction