[Mono-aspnet-list] SetEndOfSendNotification not being called

Gonzalo Paniagua Javier gonzalo.mono at gmail.com
Wed Aug 25 17:30:44 EDT 2010

On Tue, 2010-08-24 at 13:51 -0700, rjhdakota wrote:
> We are porting an MS .NET application to MONO and it is "almost" working. We
> host ASPX pages in our app as we have our own web server. When we process
> the ASPX page we need to send the page an object which is in our main
> application. This object allows aspx pages to call back into our main app.
> We create a class that is based off of the SimpleWorkerRequest class. In
> this class we declare the following function:
> public override void SetEndOfSendNotification( EndOfSendNotification
> callback, object extraData )
> This function then adds our object to the Context. It should be called  just
> before the page processing starts. Under MONO its never called. I don't see
> it ever called from the source either.
> Is there a fix for this, or a workaround that will allow me to pass a
> reference to my main app to an ASPX page?

The default SetEndOfSendNotification in HttpWorkerRequest does nothing.
It is up to you to provide an implementation for it and to actually call
it with the callback and data that you want.

Your SimpleWorkerRequest derived class should do something similar to
what we do in xsp. See 'EndOfRequest()' and 'SetEndOfSendNotification'
http://github.com/mono/xsp/blob/master/src/Mono.WebServer/MonoWorkerRequest.cs .


More information about the Mono-aspnet-list mailing list