Reputation:
I want to access the request header information from the OperationContext.Current
, will it be safe to assume that if the WCF service is have thousands of calls things will not be mixed up and OperationContext.Current
will always have the actual request header regardless of the InstanceContextMode
whether it is PerSession
, PerCall
or Single
?
Upvotes: 2
Views: 773
Reputation: 124696
OperationContext.Current is the context for the current thread, so yes, it's safe.
Upvotes: 2