コード例 #1
0
ファイル: Safe.cs プロジェクト: yashodhank/squidex
 public static async Task CleanupRestoreAsync(BackupHandler handler, Guid appId, Guid id, ISemanticLog log)
 {
     try
     {
         await handler.CleanupRestoreAsync(appId);
     }
     catch (Exception ex)
     {
         log.LogError(ex, id.ToString(), (logOperationId, w) => w
                      .WriteProperty("action", "cleanupRestore")
                      .WriteProperty("status", "failed")
                      .WriteProperty("operationId", logOperationId));
     }
 }