Table of Contents

Delegate AsyncEventHandler<TSender, TArgs>

Namespace
DSharpPlus.AsyncEvents
Assembly
DSharpPlus.dll

Provides a registration surface for asynchronous events using C# language event syntax.

public delegate Task AsyncEventHandler<in TSender, in TArgs>(TSender sender, TArgs args) where TArgs : AsyncEventArgs

Parameters

sender TSender

The instance that dispatched this event.

args TArgs

The arguments passed to this event.

Returns

Task
Provides a registration surface for asynchronous events using C# language event syntax.

Type Parameters

TSender

The type of the event dispatcher.

TArgs

The type of the argument object for this event.