_asyncFlowId.Value
should be thread safe, according to docs: "AsyncLocal<T> instances can be used to persist data across threads". The changes from other thread shouldn't be seen, no need to sync.
↧
Comment by Sinatr on Using a static AsyncLocal for an "AsyncFlowId"
↧