static void DeleteFile(RxMessageBrokerMinimod bus, Params @params)
        {
            var file = @params.File.FileName;

              bus.Send(new AdvanceToNextFile());
              bus.Send(new DeleteFile(file, @params.Command.WhatIf));
        }
        void MoveToArchive(RxMessageBrokerMinimod bus, Params @params)
        {
            var file = @params.File.FileName;
              var archiveFile = _archivePathSelector.GetArchivePathFor(file);

              bus.Send(new AdvanceToNextFile());

              if (@params.Command.WhatIf)
              {
            bus.Send(new Log("WHATIF: Archiving file {0} to {1}", file, archiveFile));
            return;
              }

              try
              {
            archiveFile = CopyFile(file, archiveFile);

            bus.Send(new Log("Archived file {0} to {1}, now going to delete", file, archiveFile));
            bus.Send(new DeleteFile(@params.File.FileName, @params.Command.WhatIf));
              }
              catch (Exception ex)
              {
            bus.Send(new Log("Failed to archive file {0} to {1}: {2}", file, archiveFile, ex.Message));
              }
        }