| C# | |
|---|---|
public static class PhpHelper | |
This class possible to use for synchronization your code in multithreading mode.
The following example uses the PhpHelper for synchronization working with list of projects.
| PHP | Copy Code |
|---|---|
// get the list from project $list = $project->Lists->get_Item("List1"); // lock the lists ZennoLab\CommandCenter\PhpHelper::LockListSyncer(); try { // get the item from list $tmp = $list->get_Item(0); // remove this item $list->RemoveAt(0); } catch (Exception $e) {} // unlock the lists ZennoLab\CommandCenter\PhpHelper::UnLockListSyncer(); | |
System.Object
ZennoLab.CommandCenter.PhpHelper
Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family