Table of Contents

Class AsyncEvent

Namespace
SharpConsoleUI.Core
Assembly
SharpConsoleUI.dll

Raises a paired sync/async notification event. Sync subscribers run inline; async subscribers are fire-and-forgotten (their continuations marshal back via the installed UI SynchronizationContext) and their exceptions are routed to the log instead of being thrown or going unobserved.

public static class AsyncEvent
Inheritance
AsyncEvent
Inherited Members

Methods

Raise(EventHandler?, AsyncEventHandler<EventArgs>?, object?, EventArgs, ILogService?)

Raises both the sync and async handler lists for a notification event whose sync side uses the non-generic EventHandler (paired with an AsyncEventHandler<TArgs> of EventArgs).

public static void Raise(EventHandler? sync, AsyncEventHandler<EventArgs>? async, object? sender, EventArgs args, ILogService? log)

Parameters

sync EventHandler
async AsyncEventHandler<EventArgs>
sender object
args EventArgs
log ILogService

Raise<TArgs>(EventHandler<TArgs>?, AsyncEventHandler<TArgs>?, object?, TArgs, ILogService?)

Raises both the sync and async handler lists for a notification event.

public static void Raise<TArgs>(EventHandler<TArgs>? sync, AsyncEventHandler<TArgs>? async, object? sender, TArgs args, ILogService? log)

Parameters

sync EventHandler<TArgs>
async AsyncEventHandler<TArgs>
sender object
args TArgs
log ILogService

Type Parameters

TArgs