😎调整即时通讯注册
This commit is contained in:
parent
6d6a910fa2
commit
e823b087a5
@ -168,8 +168,11 @@ public class Startup : AppStartup
|
||||
services.AddViewEngine();
|
||||
|
||||
// 即时通讯
|
||||
services.AddSignalR(SetNewtonsoftJsonSetting);
|
||||
//services.AddSingleton<IUserIdProvider, UserIdProvider>();
|
||||
services.AddSignalR(options =>
|
||||
{
|
||||
options.KeepAliveInterval = TimeSpan.FromSeconds(5);
|
||||
}).AddNewtonsoftJsonProtocol(options => SetNewtonsoftJsonSetting(options.PayloadSerializerSettings));
|
||||
|
||||
// 系统日志
|
||||
services.AddLoggingSetup();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user