PostSharpAPI ReferencePost­Sharp.​Patterns.​ThreadingConcurrency­Controller­FactoryCreate­Synchronized­Controller
Open sandboxFocus

ConcurrencyControllerFactory.CreateSynchronizedController Method

CreateSynchronizedController()

Creates a new concurrency controller for the synchronized threading model (SynchronizedThreadingModel).

Declaration
public static IConcurrencyController CreateSynchronizedController()
Returns
Type Description
IConcurrencyController

A new instance of the synchronized concurrency controller.

CreateSynchronizedController(Boolean)

Creates a new concurrency controller for the synchronized threading model (SynchronizedThreadingModel) and specifies whether the new controller should participate in deadlock detection.

Declaration
public static IConcurrencyController CreateSynchronizedController(bool useDeadlockDetection)
Parameters
Type Name Description
Boolean useDeadlockDetection

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.

Returns
Type Description
IConcurrencyController

A new instance of the synchronized concurrency controller.