public override void SetEndOfSendNotification( EndOfSendNotification callback_in, object extraData_in ) { base.SetEndOfSendNotification(callback_in, extraData_in); server_ = ((HttpContext)extraData_in).Server; }
/// <summary> /// Method that is called just before the ASP.Net page gets executed. Allows /// setting of the Context object item collection with arbitrary data. Also saves /// the Context object so it can be used later to retrieve any result data. /// Inbound: Context.Items["Content"] (Parameter data) /// OR: you can add Context items directly by name and pick them up by name /// Outbound: Context.Items["ResultContent"] /// </summary> /// <param name="callback">callback delegate</param> /// <param name="extraData">extraData for system purpose</param> public override void SetEndOfSendNotification(EndOfSendNotification callback, object extraData) { base.SetEndOfSendNotification(callback, extraData); this.CurrentContext = extraData as HttpContext; if (this.ParameterData != null) { // *** Use 'as' instead of cast to ensure additional calls don't throw exceptions if (this.CurrentContext != null) { // *** Add any extra data here to the this.CurrentContext.Items.Add("Content", this.ParameterData); } } // *** Copy inbound context data if (this.Context != null) { foreach (object Item in this.Context.Keys) { this.CurrentContext.Items.Add(Item, this.Context[Item]); } } }
public override void SetEndOfSendNotification(EndOfSendNotification callback, object extraData) { if (log.IsDebugEnabled) { log.Debug("Calling SetEndOfSendNotification"); } // OrigWorker.SetEndOfSendNotification (callback, extraData); }
public override void SetEndOfSendNotification(EndOfSendNotification callback, object extraData) { base.SetEndOfSendNotification(callback, extraData); if (ParameterData != null) { var context = extraData as HttpContext; if (context != null) { context.Items.Add("Content", ParameterData); } } }
public override void SetEndOfSendNotification(EndOfSendNotification callback, object extraData) { if (_endOfRequestCallback != null) { throw new InvalidOperationException(); } _endOfRequestCallback = callback; _endOfRequestCallbackArg = extraData; _endOfRequestCallbackLockCount = 1; }
/// <summary> /// Handles the start of request. /// </summary> /// <param name="callback">The callback.</param> /// <param name="extraData">The extra data.</param> public override void SetEndOfSendNotification(EndOfSendNotification callback, object extraData) { base.SetEndOfSendNotification(callback, extraData); this.endOfSendCallback = callback; this.endOfSendCallbackData = extraData; HttpContext httpContext = extraData as HttpContext; this.context.HttpContext = httpContext; this.Initialization(); }
/// <summary> /// Handles the end of request. /// </summary> public override void EndOfRequest() { base.EndOfRequest(); if (this.endOfSendCallback != null) { this.endOfSendCallback(this, this.endOfSendCallbackData); this.endOfSendCallback = null; this.endOfSendCallbackData = null; } this.Termination(); }
public virtual void SetEndOfSendNotification (EndOfSendNotification callback, object extraData) { }
public override void SetEndOfSendNotification(EndOfSendNotification callback, object extraData) { // PassThrough(base.SetEndOfSendNotification(callback, extraData); _endOfSendCallback = callback; _endOfSendExtraData = extraData; }
public override void SetEndOfSendNotification(EndOfSendNotification callback, object extraData) { end_send = callback; end_send_data = extraData; }
/// <summary> /// Registers for an optional notification when all the response data is sent. /// </summary> /// <param name="callback">The notification callback that is called when all data is sent (out-of-band).</param> /// <param name="extraData">An additional parameter to the callback.</param> public override void SetEndOfSendNotification(EndOfSendNotification callback, object extraData) { _request.SetEndOfSendNotification(callback, extraData); }
/// <devdoc> /// <para>[To be supplied.]</para> /// </devdoc> public virtual void SetEndOfSendNotification(EndOfSendNotification callback, Object extraData) { // firing the callback helps with buffer recycling }
public virtual void SetEndOfSendNotification(EndOfSendNotification callback, object extraData) { }
/// <summary> /// Method that is called just before the ASP.Net page gets executed. Allows /// setting of the Context object item collection with arbitrary data. Also saves /// the Context object so it can be used later to retrieve any result data. /// Inbound: Context.Items["Content"] (Parameter data) /// OR: you can add Context items directly by name and pick them up by name /// Outbound: Context.Items["ResultContent"] /// </summary> /// <param name="callback">callback delegate</param> /// <param name="extraData">extraData for system purpose</param> public override void SetEndOfSendNotification(EndOfSendNotification callback, object extraData) { base.SetEndOfSendNotification(callback, extraData); this.CurrentContext = extraData as HttpContext; if (this.ParameterData != null) { // *** Use 'as' instead of cast to ensure additional calls don't throw exceptions if (this.CurrentContext != null) // *** Add any extra data here to the this.CurrentContext.Items.Add("Content", this.ParameterData); } // *** Copy inbound context data if (this.Context != null) { foreach (object Item in this.Context.Keys) { this.CurrentContext.Items.Add(Item, this.Context[Item]); } } }
public override void SetEndOfSendNotification (EndOfSendNotification callback, object extraData) { end_send = callback; end_send_data = extraData; }
/// <summary> /// Registers for an optional notification when all the response data is sent. /// </summary> /// <param name="callback">The notification callback that is called when all data is sent (out-of-band). </param> /// <param name="extraData">An additional parameter to the callback. </param> public override void SetEndOfSendNotification(EndOfSendNotification callback, object extraData) { this.endOfSendCallback = callback; this.endOfSendExtraData = extraData; }
public override void SetEndOfSendNotification(EndOfSendNotification callback, object extraData) { _httpWorkerRequest.SetEndOfSendNotification(callback, extraData); }
public override void SetEndOfSendNotification(EndOfSendNotification callback, object extraData) { if (log.IsDebugEnabled) log.Debug("Calling SetEndOfSendNotification"); // OrigWorker.SetEndOfSendNotification (callback, extraData); }