Question: Are WebApi 2 request calls processed in logical threads of execution from stack?

Question

Are WebApi 2 request calls processed in logical threads of execution from stack?

Answers 0
Added at 2017-01-04 10:01
Tags
Question

When ASP.NET Web Api 2 processes requests in asynchronous manner are they considered logical threads of execution? I.e. does setting up

CallContext.LogicalSetData("somekey", "somevalue")

before starting the web api stack guarantee getting "somevalue" from

CallContext.LogicalGetData("somekey")

from anywhere in-code executed during specific request processing?
If it doesn't what is the way to share some variable across several api calls?

Answers to

Are WebApi 2 request calls processed in logical threads of execution from stack?

Source Show
◀ Wstecz