[Mono-devel-list] WorkerRequest

Cezar Nasui cezar.nasui at polymtl.ca
Wed Oct 15 15:24:47 EDT 2003


On Tue, 2003-10-14 at 07:22, Gonzalo Paniagua Javier wrote:
>  
> > - there is a way I can get these values ? What are my options to make the 2
> > applications, console and web, "talk" to each other (beside remoting)?
> 
> You have to create your own WorkerRequest that passes the faked data to
> System.Web. mod_mono, for example, uses unix sockets, but you can use a
> stream or whatever.

I use the XSP's ApplicationHost and XSPWorkerRequest to create my own
hosting environnement. 
What I initially thought was to intercept the request, get the
QueryString, and based on the parameters compose the response (add
something to the Response object). Then, in the aspx page I would only
do basic formating because all I need is already in the Response.

The problem is I don't know where should I do this? At the worker level?
How can I add something to the Response before gets sent?
In the XSPWorkerRequest I see a MemoryStream response and I see
it gets sent in SendResponseFromMemory but I don't know how can I tamper it.

Is this similar to what you think when you say that the worker would
pass the data to System.Web? 

Many thanks,
Cezar
> -Gonzalo




More information about the Mono-devel-list mailing list