Ejemplo n.º 1
0
 protected override DTObject DynamicInvoke(dynamic arg)
 {
     if (arg.StoreKey != null)
     {
         VirtualFile file = VirtualFileCommon.FindByStoreKey(arg.StoreKey, QueryLevel.None);
         if (!file.IsEmpty())
         {
             var cmd = new DeleteVirtualFile(file.Disk.Id, file.Id);
             cmd.Execute();
         }
     }
     else
     {
         VirtualFile file = VirtualFileCommon.FindById(arg.Id, QueryLevel.None);
         if (!file.IsEmpty())
         {
             var cmd = new DeleteVirtualFile(file.Disk.Id, file.Id);
             cmd.Execute();
         }
     }
     return(DTObject.Empty);
 }