Table of Contents

Delegate AsyncGameEventHandler<TArgs>

Namespace
SkyrimForge
Assembly
SkyrimForge.dll

Handles a game event asynchronously. The game waits for the handler to return its task.

public delegate Task AsyncGameEventHandler<TArgs>(TArgs args) where TArgs : struct

Parameters

args TArgs
Handles a game event asynchronously. The game waits for the handler to return its task.

Returns

Task
Handles a game event asynchronously. The game waits for the handler to return its task.

Type Parameters

TArgs

Remarks

A thrown exception (or a faulted task) is logged, and the handler's subscription is removed. A canceled task is ignored.

Constructors

AsyncGameEventHandler(object, nint)

public AsyncGameEventHandler(object @object, nint method)

Parameters

object object
method nint

Methods

BeginInvoke(TArgs, AsyncCallback, object)

public virtual IAsyncResult BeginInvoke(TArgs args, AsyncCallback callback, object @object)

Parameters

args TArgs
callback AsyncCallback
object object

Returns

IAsyncResult

EndInvoke(IAsyncResult)

public virtual Task EndInvoke(IAsyncResult result)

Parameters

result IAsyncResult

Returns

Task

Invoke(TArgs)

public virtual Task Invoke(TArgs args)

Parameters

args TArgs

Returns

Task