取消定时服务发布订阅模式改为存时间轮询方式

This commit is contained in:
alex
2023-10-10 13:23:38 +08:00
parent 1cfc9e25e5
commit ab9608aec2
6 changed files with 54 additions and 44 deletions

View File

@@ -294,7 +294,7 @@ public class OAuthService : IDynamicApiController, ITransient
var userId = _userManager.UserId;
//modify by ly on 20230918 登录成功后启动定时服务
if (!userId.IsNullOrWhiteSpace())
/*if (!userId.IsNullOrWhiteSpace())
{
if (!_fetchPropValue.TryGetValue("IsStarted", out var action))
@@ -317,7 +317,7 @@ public class OAuthService : IDynamicApiController, ITransient
{
}
}
}
}*/
var loginOutput = new CurrentUserOutput();
loginOutput.userInfo = await _userManager.GetUserInfo();
@@ -419,10 +419,10 @@ public class OAuthService : IDynamicApiController, ITransient
public async Task Logout([FromQuery] string ticket)
{
//modify by ly on 20230918
stopTimedTaskSvcCTS ??= new();
/* stopTimedTaskSvcCTS ??= new();
await _backgroundService.StopAsync(stopTimedTaskSvcCTS.Token);
stopTimedTaskSvcCTS.Cancel();
//stopTimedTaskSvcCTS.Dispose();
*/ //stopTimedTaskSvcCTS.Dispose();
UserManager.AsscessToken = string.Empty;