Table of Contents

Interface IEventHandler<T>

Namespace
JobFlow.Core.Events
Assembly
JobFlow.Core.dll

Implemented by event handles to receive a particular type of application event, defined by T.

public interface IEventHandler<T> where T : EventData

Type Parameters

T

Event data type.

Extension Methods

Remarks

The implemented event handler merely needs to be added to the dependency injection container. The system will call all the handlers added to that container.

Methods

HandleAsync<S>(S, T)

Handle the incoming event.

Task HandleAsync<S>(S sender, T data)

Parameters

sender S

Class which raised the event.

data T

Event data.

Returns

Task

Type Parameters

S