Table of Contents

Class WpfScheduler<TTask>

Namespace
StockSharp.Xaml
Assembly
StockSharp.Xaml.dll

Task scheduler used WPF timer.

public class WpfScheduler<TTask> : Disposable where TTask : IScheduledTask

Type Parameters

TTask
Inheritance
WpfScheduler<TTask>
Extension Methods

Constructors

WpfScheduler(IEnumerable<TTask>)

Initializes a new instance of the WpfScheduler<TTask>.

public WpfScheduler(IEnumerable<TTask> tasks)

Parameters

tasks IEnumerable<TTask>

Tasks.

Properties

Interval

Interval.

public TimeSpan Interval { get; set; }

Property Value

TimeSpan

Remarks

By default is 30 second.

Methods

DisposeManaged()

Release resources.

protected override void DisposeManaged()

Start()

Start.

public void Start()

Stop()

Stop.

public void Stop()

Events

Starting

Starting tasks event.

public event Action<IEnumerable<TTask>> Starting

Event Type

Action<IEnumerable<TTask>>

Stopping

Stopping tasks event.

public event Action<IEnumerable<TTask>> Stopping

Event Type

Action<IEnumerable<TTask>>