Browse Source

Use AbpAsyncTimer in TokenCleanupBackgroundWorker.

pull/6417/head
maliming 6 years ago
parent
commit
fca9647d94
  1. 7
      modules/identityserver/src/Volo.Abp.IdentityServer.Domain/Volo/Abp/IdentityServer/Tokens/TokenCleanupBackgroundWorker.cs

7
modules/identityserver/src/Volo.Abp.IdentityServer.Domain/Volo/Abp/IdentityServer/Tokens/TokenCleanupBackgroundWorker.cs

@ -11,11 +11,11 @@ namespace Volo.Abp.IdentityServer.Tokens
protected TokenCleanupOptions Options { get; } protected TokenCleanupOptions Options { get; }
public TokenCleanupBackgroundWorker( public TokenCleanupBackgroundWorker(
AbpTimer timer, AbpAsyncTimer timer,
IServiceScopeFactory serviceScopeFactory, IServiceScopeFactory serviceScopeFactory,
IOptions<TokenCleanupOptions> options) IOptions<TokenCleanupOptions> options)
: base( : base(
timer, timer,
serviceScopeFactory) serviceScopeFactory)
{ {
Options = options.Value; Options = options.Value;
@ -27,8 +27,7 @@ namespace Volo.Abp.IdentityServer.Tokens
await workerContext await workerContext
.ServiceProvider .ServiceProvider
.GetRequiredService<TokenCleanupService>() .GetRequiredService<TokenCleanupService>()
.CleanAsync() .CleanAsync();
;
} }
} }
} }

Loading…
Cancel
Save