using System.Threading.Tasks; using Volo.Abp.DependencyInjection; namespace Volo.Abp.EventBus { public class MySimpleAsyncEventDataHandler : IAsyncEventHandler, ISingletonDependency { public int TotalData { get; private set; } public Task HandleEventAsync(MySimpleEventData eventData) { TotalData += eventData.Value; return Task.CompletedTask; } } }