Class TaskCompletionNotifier<TResult>
- Namespace
- WindowSill.API
- Assembly
- WindowSill.API.dll
Watches a task and raises property-changed notifications when the task completes.
public sealed class TaskCompletionNotifier<TResult> : INotifyPropertyChanged
Type Parameters
TResultThe type of the result of the task.
- Inheritance
-
TaskCompletionNotifier<TResult>
- Implements
- Inherited Members
- Extension Methods
Properties
IsCanceled
Gets whether the task has been canceled.
public bool IsCanceled { get; }
Property Value
IsCompleted
Gets whether the task has completed.
public bool IsCompleted { get; }
Property Value
IsFaulted
Gets whether the task has faulted.
public bool IsFaulted { get; }
Property Value
IsSuccessfullyCompleted
Gets whether the task has completed successfully.
public bool IsSuccessfullyCompleted { get; }
Property Value
Result
Gets the result of the task. Returns the default value of TResult if the task has not completed successfully.
public TResult? Result { get; }
Property Value
- TResult
Task
Gets the task being watched. This property never changes and is never null.
public Task<TResult>? Task { get; }
Property Value
- Task<TResult>
Events
PropertyChanged
Occurs when a property value changes.
public event PropertyChangedEventHandler? PropertyChanged