Esempio n. 1
0
        private async Task ProcessClearCacheAsync(StreamWriter writer, CancellationToken cancellationToken)
        {
            if (await _repoCache.ClearCacheAsync(cancellationToken))
            {
                await writer.WriteAsync(NamedPipeCommand.Success);

                _log.Information("Cleared cache");
            }
            else
            {
                await writer.WriteAsync(NamedPipeCommand.Failed);

                _log.Warning("Failed to clear cache");
            }
        }
Esempio n. 2
0
        public Task <bool> ClearCacheAsync(CancellationToken token)
        {
            EnsureServerIsAvailable();

            return(_repositoryCache.ClearCacheAsync(token));
        }
Esempio n. 3
0
 private Task <bool> ProcessClearCacheCommandAsync(CancellationToken token)
 {
     return(_cache.ClearCacheAsync(token));
 }