Class ActionEventHandler<TEvent>
Inheritance
object
ActionEventHandler<TEvent>
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.EventBus
Assembly: Volo.Abp.EventBus.dll
Syntax
public class ActionEventHandler<TEvent> : ILocalEventHandler<TEvent>, IEventHandler, ITransientDependency
Type Parameters
| Name | Description |
|---|---|
| TEvent |
Constructors
ActionEventHandler(Func<TEvent, Task>)
Declaration
public ActionEventHandler(Func<TEvent, Task> handler)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Func<T, TResult><TEvent, System.Threading.Tasks.Task> | handler |
Properties
Action
Declaration
public Func<TEvent, Task> Action { get; }
Property Value
| Type | Description |
|---|---|
| System.Func<T, TResult><TEvent, System.Threading.Tasks.Task> |
Methods
HandleEventAsync(TEvent)
Declaration
public Task HandleEventAsync(TEvent eventData)
Parameters
| Type | Name | Description |
|---|---|---|
| TEvent | eventData |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task |