public async Task StopAsync(CancellationToken cancellationToken) { logger?.LogInformation("HybridCache is shutting down..."); var sw = Stopwatch.StartNew(); await AsyncCache.AwaitEnqueuedTasks(); await Database.StopAsync(cancellationToken); sw.Stop(); logger?.LogInformation("HybridCache shut down in {ShutdownTime}", sw.Elapsed); }
public Task AwaitEnqueuedTasks() { return(AsyncCache.AwaitEnqueuedTasks()); }