Files
Kg.SeaTime/Service/Application.Domain/BusEvents/BusEventsSubscriber.cs
Putoo a1dbce8a96 111
2026-07-05 18:51:01 +08:00

17 lines
588 B
C#

namespace Application.Domain
{
public class BusEventsSubscriber : IEventSubscriber
{
/// <summary>
/// 处理贡献提成
/// </summary>
/// <param name="context"></param>
[EventSubscribe(BusEventsEnum.BusEventsName.PutFightAward, NumRetries = 0)]
public async Task HandleQueueBonus(EventHandlerExecutingContext context)
{
var data = context.GetPayload<game_fight_data>();
var fightService = App.GetService<IGameFightService>();
await fightService.HandleFight(data);
}
}
}