Class GlobalEventExtensions
- Namespace
- ChartTools.Events
- Assembly
- ChartTools.dll
Provides extensions methods for sets of GlobalEvent
public static class GlobalEventExtensions
- Inheritance
-
GlobalEventExtensions
- Inherited Members
Methods
ToFile(IEnumerable<GlobalEvent>, string)
Replaces the set of GlobalEvent in a file.
public static void ToFile(this IEnumerable<GlobalEvent> events, string path)
Parameters
events
IEnumerable<GlobalEvent>Set of events to write
path
stringPath of the file to write to
ToFileAsync(IEnumerable<GlobalEvent>, string, CancellationToken)
Replaces the set of GlobalEvent in a file asynchronously.
public static Task ToFileAsync(this IEnumerable<GlobalEvent> events, string path, CancellationToken cancellationToken = default)
Parameters
events
IEnumerable<GlobalEvent>Set of events to write
path
stringPath of the file to write to
cancellationToken
CancellationTokenToken used for cancellation