Example #1
0
 /// <summary>
 /// 対象のファイルを削除する。
 /// </summary>
 /// <param name="file">ファイル</param>
 public void Delete(ArchiveFile file)
 {
     _log.EnterJson($"{nameof(file)}:{0}", file);
     try
     {
         _primaryBlob.Delete(file);
     }
     catch (Exception ex)
     {
         string path = string.Format("{0}/{1}", file.ContainerName, file.FilePath);
         throw new RmsException(string.Format("Blobの削除に失敗しました(delete {0})", path), ex);
     }
     finally
     {
         _log.Leave();
     }
 }