ConcurrencyControllerFactory.CreateSynchronizedController Method |
Creates a new concurrency controller for the synchronized threading model (SynchronizedThreadingModel)
and specifies whether the new controller should participate in deadlock detection.
Namespace: PostSharp.Patterns.Threading
Assembly: PostSharp.Patterns.Threading (in PostSharp.Patterns.Threading.dll) Version: 6.5.21.0 (6.5.21.0)
C#
public static IConcurrencyController CreateSynchronizedController( bool useDeadlockDetection )
Parameters
- useDeadlockDetection
- Type: System.Boolean
Indicates whether the controller should participate in the deadlock detection algorithm. Use IsEnabled(Assembly) to determine whether the policy is enabled for the current assembly.
Return Value
Type: IConcurrencyControllerA new instance of the synchronized concurrency controller.