Exemplo n.º 1
0
        /// <summary>
        /// 执行方法。
        /// </summary>
        /// <param name="argument">参数。</param>
        public override async Task ExecuteAsync(Argument argument)
        {
            await _mediaDirectory.ClearDeletedPhysicalFilesAsync();

            _storageDirectory.ClearEmptyDirectories();
            await Task.Delay(100);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 执行方法。
        /// </summary>
        /// <param name="argument">参数。</param>
        public override async Task ExecuteAsync(Argument argument)
        {
            var mediaDirectory = _serviceProvider.GetService <IMediaDirectory>();

            if (mediaDirectory != null)
            {
                await mediaDirectory.ClearDeletedPhysicalFilesAsync();
            }

            _storageDirectory.ClearEmptyDirectories();
            await Task.Delay(100);
        }
Exemplo n.º 3
0
 /// <summary>
 /// 执行方法。
 /// </summary>
 /// <param name="argument">参数。</param>
 public override async Task ExecuteAsync(Argument argument)
 {
     _storageDirectory.ClearEmptyDirectories();
     await Task.Delay(100);
 }