PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Threading Namespace / Threading­Services Class / Threading­Services Methods

ThreadingServices Methods

The ThreadingServices type exposes the following members.

Public methodStatic memberWithConcurrencyController
Sets the ambient concurrency controller for the current thread. Until the returned AmbientConcurrencyControllerContext value is disposed, thread-aware objects created in the current thread will be assigned to the given concurrency controller.
See Also