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); } } }