> I am writing a module that requires the entire output from a web app
> to perform its function. So, basically I need to be able to pull the
[quoted text clipped - 3 lines]
> to convert it to an XmlDocument. Does anyone know of a way to get the
> entire output stream from a web app using a module?
Well, I managed to figure this one out myself.
Answer:
1. Create a custom filter that makes use of the singleton pattern.
2. Have the filter store each stream as it comes through in a public
variable (i.e. temp += currentStream).
3. Install the filter on BeginRequest of the application from within
a module.
4. Grab your filter on EndRequest of the application from within the
module.
5. Your singleton filter should now have the entire output of the
application in its temp variable.
Josh Naro - 20 Jun 2007 18:48 GMT
> > I am writing a module that requires the entire output from a web app
> > to perform its function. So, basically I need to be able to pull the
[quoted text clipped - 16 lines]
> 5. Your singleton filter should now have the entire output of the
> application in its temp variable.
Don't forget to destroy the singleton after use (it'll hang around for
the next request).
Also, you must create a separate singleton for each context you're
working with so that multiple requests are not intermingled.