style: 💄 jetbrains.resharper.globaltools 升级到 2023.3 (#70)

This commit is contained in:
2023-12-08 10:24:06 +08:00
committed by GitHub
parent 0059052b87
commit 904df511b9
72 changed files with 82 additions and 87 deletions

View File

@@ -18,14 +18,14 @@ public sealed class CacheCleaner : IEventSubscriber
/// 用户缓存清理
/// </summary>
[EventSubscribe(nameof(UserUpdatedEvent))]
public async Task RemoveUserInfoAsync(EventHandlerExecutingContext context)
public Task RemoveUserInfoAsync(EventHandlerExecutingContext context)
{
if (context.Source is not UserUpdatedEvent userUpdatedEvent) {
return;
return Task.CompletedTask;
}
var cache = App.GetService<IUserCache>();
cache.Service.UserToken = ContextUserToken.Create(userUpdatedEvent.Data);
await cache.RemoveUserInfoAsync().ConfigureAwait(false);
return cache.RemoveUserInfoAsync();
}
}