添加项目文件。
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
using DotNetCore.CAP;
|
||||
using CommonDomain;
|
||||
|
||||
namespace CommonService.Lottery
|
||||
{
|
||||
public class LotteryPrizeSubscriber : ICapSubscribe
|
||||
{
|
||||
private readonly LotteryPrizeHandler _handler;
|
||||
|
||||
public LotteryPrizeSubscriber(LotteryPrizeHandler handler)
|
||||
{
|
||||
_handler = handler;
|
||||
}
|
||||
|
||||
[CapSubscribe("Lottery.DrawPrize")]
|
||||
public async Task HandleLotteryDrawPrize(LotteryDrawMessage message)
|
||||
{
|
||||
await _handler.Handle(message);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user