using System; namespace LightWebTestFramework { internal abstract class Recorder { private object m_senderObject = new object(); protected RecordingState m_recordingState = RecordingState.Paused; public event EventHandler<RequestRecordedEventArgs> RequestRecorded; public event EventHandler<HiddenFieldsFoundEventArgs> HiddenFieldsFound; public event EventHandler<ThinkTimeMeasuredEventArgs> ThinkTimeMeasured; public event EventHandler<DependentsParsedEventArgs> DependentsParsed; public event EventHandler<ResponseTimeUpdatedEventArgs> ResponseTimeUpdated; public RecordingState RecordingState { get { return this.m_recordingState; } } public abstract void Start(); public abstract void Pause(); public abstract void Stop(); protected void RaiseRequestRecorded(RequestRecordedEventArgs e) { if (this.RequestRecorded != null) { this.RequestRecorded(this.m_senderObject, e); } } protected void RaiseHiddenFieldsFound(HiddenFieldsFoundEventArgs e) { if (this.HiddenFieldsFound != null) { this.HiddenFieldsFound(this.m_senderObject, e); } } protected void RaiseThinkTimeMeasured(ThinkTimeMeasuredEventArgs e) { if (this.ThinkTimeMeasured != null) { this.ThinkTimeMeasured(this.m_senderObject, e); } } protected void RaiseResponseTimeUpdated(ResponseTimeUpdatedEventArgs e) { if (this.ResponseTimeUpdated != null) { this.ResponseTimeUpdated(this.m_senderObject, e); } } protected void RaiseDependentsParsed(DependentsParsedEventArgs e) { if (this.DependentsParsed != null) { this.DependentsParsed(this.m_senderObject, e); } } } }
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)