void CompactRecordedFile(string filePathToCompact) { ProcessRecordedFiles procRecFile = new ProcessRecordedFiles(filePathToCompact); procRecFile.CompactLroPolling(); procRecFile.SerializeCompactData(); }
/// <summary> /// Stop recording and Discard all undo information /// </summary> public void Stop() { if (HttpMockServer.Mode != HttpRecorderMode.Playback) { foreach (var undoHandler in undoHandlers) { undoHandler.DeleteResourceGroups().ConfigureAwait(false).GetAwaiter().GetResult(); } } string recordedFilePath = HttpMockServer.Flush(); if (HttpMockServer.Mode == HttpRecorderMode.Record) { // this check should be removed once we make the optimizatoin default if (OptimizeTestRecordingFile) { ProcessRecordedFiles procRecFile = new ProcessRecordedFiles(recordedFilePath); procRecFile.CompactLroPolling(); procRecFile.SerializeCompactData(); } } }