views:

31

answers:

1

Good afternoon

When developing a WCF service, I think we can't access current page request and HTTP Session information without using the class attribute:

[AspNetCompatibilityRequirements(
RequirementsMode = AspNetCompatibilityRequirementsMode.Required)]

So, if we are not using this attribute, we could pass to our WCF methods many objects with parameters as we want.

Now I'm reading about RequestContext, and I'm wandering if is there anything useful in this WCF property:

OperationContext.Current.RequestContext

In which situation should I use it? Is it possible to pass our own objects using this RequestContext or is it readonly?

A: 

It is useful to tie replies to their requests.

Michael Goldshteyn