This event occurs before processing of any client request starts.
connector.Begin += new EventHandler(connector_Begin);
This event is mostly useful to enable logging functionality (can be disabled later through the end event).
Sample of usage:
void connector_Begin(object sender, EventArgs e)
{
//enable logging and add listener to it
Log.Enabled = true;
Log.Listeners.Add(new TextWriterTraceListener(new StringWriter(this._LogContent)));
}
Back to top