[Mono-aspnet-list] SetEndOfSendNotification not being called

Gonzalo Paniagua Javier gonzalo.mono at gmail.com
Fri Aug 27 12:51:47 EDT 2010


On Fri, 2010-08-27 at 06:11 -0700, rjhdakota wrote:
> Thanks for the reply. I'm not sure where we would call
> SetEndofSendNotification as we need to pass it a reference to Context (which
> is created after HTTPRunTime.Process is called). It appears that on Windows,
> a default handler is added internally already (since I don't add one, but
> its still being called).

If this is the case, we have a bug, but I doubt it. I remember testing
it a loooong time ago, but this might have changed after .NET 2.0. I'll
do a quick test later today and report back.

> For now I modified the MONO source and added the call right after the
> Context is created so it now acts the same as Windows. Since we are running
> on a closed system, this solves the problem.

You can hook to the Application_BeginRequest event and call
SetEndOfSendNotification from there, since at that point you have the
context.

-Gonzalo




More information about the Mono-aspnet-list mailing list