Table of Contents

Class TaskToastScheduler

Namespace
SharpConsoleUI.Core
Assembly
SharpConsoleUI.dll

Default IToastScheduler that delays via Delay(int) and marshals the callback back to the UI thread.

public sealed class TaskToastScheduler : IToastScheduler
Inheritance
TaskToastScheduler
Implements
Inherited Members
Extension Methods

Constructors

TaskToastScheduler(Action<Action>)

Initializes a new instance of the TaskToastScheduler class.

public TaskToastScheduler(Action<Action> postToUiThread)

Parameters

postToUiThread Action<Action>

A delegate that marshals the supplied action onto the UI thread.

Methods

Schedule(int, Action)

Schedules callback to run after delayMs milliseconds.

public void Schedule(int delayMs, Action callback)

Parameters

delayMs int

The delay in milliseconds before invoking the callback.

callback Action

The callback to invoke after the delay.