Sending response from request processor?

Topics: Web Api
Feb 7, 2011 at 8:01 PM

Hi,

I am trying to figure out, how to write a processor that sits in the request pipeline and returns a response (before the request even reaches the resource operation).

Is that possible and if so, how do I do that?

Jan

 

Feb 7, 2011 at 10:05 PM

So, I now found this http://wcf.codeplex.com/Thread/View.aspx?ThreadId=233082 where Glenn suggests we need to wait for channels.

Jan

Coordinator
Feb 7, 2011 at 10:11 PM

Not necessarily Jan. I am checking into this, I believe we did put some support on Codeplex for processors with ProcessorResult.Error. I need to confirm and will get back to you.

In terms of ideal, I agree that redirects may be better handled in the new channel stack, but it really depends on if you want to handle this as a low level http concern, of if you are working with more of you domain objects to make the determination.

Glenn