//</snippet2> // Dispose the record sequence and delete the log file. public void Cleanup() { // Dispose the sequence. sequence.Dispose(); // Delete the log file. if (delete) { try { File.Delete(this.logName); } catch (Exception e) { Console.WriteLine("Exception {0} {1}", e.GetType(), e.Message); } } }
public void Dispose(){ _sequence.Dispose(); }