Getting Time Elapsed
You can check how long it takes to validate an EDI file using the Milliseconds property of the ValidationEventsArgs. The first time the EDIValidator is used it will take a few more milliseconds because aside from validating the EDI file, the EDIValidator has to load the EDI rules. After the EDI rules are loaded it will take significantly less time to validate an EDI file.
Subscribe to the ValidationComplete event args. It contains the Milliseconds property in its event args object.[/su_note]
ediValidator.ValidationCompleted += new EDIValidator.ValidationCompletedEvent(ediValidator_ValidationCompleted);
void ediValidator_ValidationCompleted(object sender, ValidationEventsArgs e)