Toastie.Events (3.0.0)

Published 2025-01-03 13:20:10 +00:00 by toastie_t0ast

Installation

dotnet nuget add source --name toastie_t0ast --username your_username --password your_token 
dotnet add package --source toastie_t0ast --version 3.0.0 Toastie.Events

About this package

Provides generic and async event handlers.

Toastie.Events

Defines the following types:

  • EventHandler<T1, T2>
    • Where T1 is the object that sends the event and T2 is the EventArgs.
  • AsyncEventHandler
    • Takes an object? type and an EventArgs.
  • AsyncEventHandler<T1, T2>
    • Where T1 is the object that sends the event and T2 is the EventArgs.
  • AsyncEvent<T1, T2>
    • Where T1 is the object that sends the event and T2 is the EventArgs.
    • In contrast to AsyncEventHandler, AsyncEvent properly awaits for the execution of all handlers registered in it.
Details
NuGet
2025-01-03 13:20:10 +00:00
3
Toastie
340 KiB
Assets (5)
Versions (8) View all
3.0.0 2025-01-03
2.3.2 2024-11-14
2.3.1 2024-11-14
2.3.0 2024-11-14
2.2.1 2024-11-14