取消定时服务发布订阅模式改为存时间轮询方式
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user