protected override int ExecuteCmd(DocumentsOperationContext context) { switch (_instruction) { case Instruction.Start: _databaseTxMerger.StartRecording(_filePath); break; case Instruction.Stop: _databaseTxMerger.StopRecording(); break; default: throw new ArgumentOutOfRangeException($"The value {_instruction} was out of the range of valid values"); } return(0); }
protected override long ExecuteCmd(DocumentsOperationContext context) { _databaseTxMerger.StartRecording(_filePath, _onStop); return(0); }