What's the equivalent of OperationContext in the new Web API? In the previous version, I had an OperationContext extension that stored custom data - should I be using HttpContext.Current to store this data now?
Thanks,
Priya
Please "Mark as Answer" if this resolves your query. Thanks!
priya_marwah...
Member
81 Points
52 Posts
Equivalent of OperationContext
Feb 29, 2012 06:05 PM|LINK
What's the equivalent of OperationContext in the new Web API? In the previous version, I had an OperationContext extension that stored custom data - should I be using HttpContext.Current to store this data now?
Thanks,
Priya
davebettin
Member
313 Points
94 Posts
Re: Equivalent of OperationContext
Feb 29, 2012 06:09 PM|LINK
Hi Priya,
Use the HttpRequestMessage properties dictionary to store this type of data.
Cheers,
Dave
@dbettin
priya_marwah...
Member
81 Points
52 Posts
Re: Equivalent of OperationContext
Feb 29, 2012 06:18 PM|LINK
Thanks Dave!