private void MovePacketCaptureFile(string currentCaptureFileName) { // Move the packet capture file to the parser service folder // Wait for any process to finish writing to the file Thread.Sleep(500); try { // Call the CaptureAgent CaptureAgent.CaptureAgent ca = new CaptureAgent.CaptureAgent(); ca.MoveCaptureFileToParseFolder(_CaptureFolderPath, _ParseFolderPath, currentCaptureFileName); } catch (Exception ex) { MessageBox.Show("Error moving packet capture: " + ex.Message, "Move Packet Capture File", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void MovePacketCaptureFile(string currentCaptureFileName) { // Move the packet capture file to the ParseCaptureFiles folder specified in app.config // The ParseCaptureFilesService will read the file(s) in this folder and parse them, // then move the parsed file to the ProcessedCaptureFiles folder. // Wait for any process to finish writing to the file Thread.Sleep(500); try { // Call the CaptureAgent CaptureAgent.CaptureAgent ca = new CaptureAgent.CaptureAgent(); ca.MoveCaptureFileToParseFolder(_CaptureFolderPath, _ParseFolderPath, currentCaptureFileName); } catch (Exception ex) { MessageBox.Show("Error moving packet capture: " + ex.Message, "Move Packet Capture File", MessageBoxButtons.OK, MessageBoxIcon.Error); } }