/// <summary> /// 执行方法。 /// </summary> /// <param name="argument">参数。</param> public override async Task ExecuteAsync(Argument argument) { await _mediaDirectory.ClearDeletedPhysicalFilesAsync(); _storageDirectory.ClearEmptyDirectories(); await Task.Delay(100); }
/// <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); }
/// <summary> /// 执行方法。 /// </summary> /// <param name="argument">参数。</param> public override async Task ExecuteAsync(Argument argument) { _storageDirectory.ClearEmptyDirectories(); await Task.Delay(100); }