user915331
user915331

Reputation:

OperationContext.Current and InstanceContextMode in WCF

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

Answers (1)

to StackOverflow
to StackOverflow

Reputation: 124696

OperationContext.Current is the context for the current thread, so yes, it's safe.

Upvotes: 2

Related Questions