private void ContextOnEndRequest(object sender, EventArgs eventArgs) { #if DEBUG if (!IsSupport) return; _listener.Clear(); Debug.Listeners.Remove(_listener); this._listener.Dispose(); this._listener = null; #endif }
private void ContextOnEndRequest(object sender, EventArgs eventArgs) { #if DEBUG if (!IsSupport) { return; } _listener.Clear(); Debug.Listeners.Remove(_listener); this._listener.Dispose(); this._listener = null; #endif }
private void ContextOnBeginRequest(object sender, EventArgs eventArgs) { #if DEBUG if (!IsSupport) return; _listener = new JavaScriptTraceListner(); if (Debug.Listeners.Contains(_listener) == false) Debug.Listeners.Add(_listener); this.response = app.Response; _traceStream = new TraceStream(app.Context.Response.Filter, this._listener); response.Filter = _traceStream; #endif }
private void ContextOnBeginRequest(object sender, EventArgs eventArgs) { #if DEBUG if (!IsSupport) { return; } _listener = new JavaScriptTraceListner(); if (Debug.Listeners.Contains(_listener) == false) { Debug.Listeners.Add(_listener); } this.response = app.Response; _traceStream = new TraceStream(app.Context.Response.Filter, this._listener); response.Filter = _traceStream; #endif }
public TraceStream(Stream _stream, JavaScriptTraceListner _listener) { this.stream = _stream; this._listener = _listener; }
public TraceStream(Stream _stream, JavaScriptTraceListner _listener) { this.stream = _stream; this._listener = _listener; }