111
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
|
||||
using Microsoft.OpenApi.Models;
|
||||
using Photon.Core.Redis;
|
||||
|
||||
@@ -82,6 +81,17 @@ builder.Services.AddCors(options =>
|
||||
|
||||
#endregion 配置跨域处理,允许所有来源
|
||||
|
||||
#region 事务总线
|
||||
// 注册 EventBus 服务
|
||||
builder.Services.AddEventBus(builder =>
|
||||
{
|
||||
// 注册 ToDo 事件订阅者
|
||||
builder.AddSubscriber<BusEventsSubscriber>();
|
||||
});
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
builder.Services.AddSignalR();
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
Reference in New Issue
Block a user