[Mono-devel-list] XSPWorkerRequest
Cezar Nasui
cezar.nasui at polymtl.ca
Sun Oct 19 23:37:38 EDT 2003
>>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 tried to create my own WorkerRequest using XSPWorkerRequest as example.
The problem I have is that once the HttpRuntime.ProcessRequest gets called
I found no way to intercept the response, it gets sent straight to the
browser...
In order to be able to intercept the response and to add something to the
Response object
that will require to "replace" HttpRuntime.ProcessRequest and to create
myself
the output ??
Any help greatly appreciated,
Cezar
-----Original Message-----
From: Gonzalo Paniagua Javier [mailto:gonzalo at ximian.com]
Sent: Tuesday, October 14, 2003 7:22 AM
To: Mono-devel-list at lists. ximian. com
Subject: Re: [Mono-devel-list] (no subject)
El mar, 14-10-2003 a las 06:20, Cezar Nasui escribió:
> Hi,
>
> I'm working on an application that it suppose to display on the browser
some
> values from an already running console application.
> The console application instanciates a class MyClass, modifies some
> properties and starts the web server (actually an instance of an
> ApplicationHost with all it needs to serve requests). So far so good, the
> "web server" starts, it serves basic pages, I print on console the new
> values for the MyClass properties, everything is fine.
> Now, I want to call an aspx page in the browser to display these values.
> What I did was to create a static method in the console application that I
> could call from the aspx page. After all the necessary Imports, the page
> shows in the browser but I don't get the actual values. Is like a new
> instance of the MyClass was created.
> That leads me to my questions :
> - does the web server start in a new process ? As I mentioned I'm starting
> it from the console application and I create it using
> --snip
> (XSPApplicationHost) host = (XSPApplicationHost)
> ApplicationHost.CreateApplicationHost()...
> host.Start();
> --snip
Each time you request a page, a new instance is created and processes
the request.
>
> - 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.
-Gonzalo
_______________________________________________
Mono-devel-list mailing list
Mono-devel-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.525 / Virus Database: 322 - Release Date: 10/9/2003
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.528 / Virus Database: 324 - Release Date: 10/16/2003
More information about the Mono-devel-list
mailing list