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
| Member | Summary |
|---|---|
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
| Member | Summary |
|---|---|
Label | What the action is called; a delegate, so it can be translated. |
Run | What it does. The dialog closes first, so this may open one of its own. |
Methods
| Member | Summary |
|---|---|
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
| Name | Type | Description |
|---|---|---|
Label | Func<TResult><string> | What the action is called; a delegate, so it can be translated. |
Run | Action | What 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
| Name | Type | Description |
|---|---|---|
Label | Func<TResult><string> | |
Run | Action |