namespace Application.Domain
{
public class BusEventsSubscriber : IEventSubscriber
{
///
/// 处理贡献提成
///
///
[EventSubscribe(BusEventsEnum.BusEventsName.PutFightAward, NumRetries = 0)]
public async Task HandleQueueBonus(EventHandlerExecutingContext context)
{
var data = context.GetPayload();
var fightService = App.GetService();
await fightService.HandleFight(data);
}
[EventSubscribe(BusEventsEnum.BusEventsName.HandleOnHook, NumRetries = 0,RetryTimeout = 999999999)]
public async Task HandleOnHook(EventHandlerExecutingContext context)
{
var hookService = App.GetService();
await hookService.HandleHook();
}
}
}