C# Class VisualUIAVerify.Controls.AutomationElementTreeNode.AutomationElementTreeNodeSynchornizationManager

this class takes case of synchronization issues on AutomationElementTreeNode
Exibir arquivo Open project: geeksree/cSharpGeeks

Public Methods

Method Description
AutomationElementTreeNodeSynchornizationManager ( AutomationElementTreeNode OwnerNode ) : System
Lock ( ) : IDisposable

This method is used to synchronize calls on AutomationElementTreeNode instance.

RunOnUIThread ( Delegate Method ) : void

this method is called when something is neede to perform on UI-Thread. This method must be called only within the Lock method

Protected Methods

Method Description
BeginInvokeOnUIThread ( Delegate Method ) : void
IsThisCallOnUIThread ( ) : bool

this method returns true if this call is made on currentTestTypeRootNode UI-Thread. Else return false.

Private Methods

Method Description
GetLockDisposer ( ) : IDisposable

Method Details

AutomationElementTreeNodeSynchornizationManager() public method

public AutomationElementTreeNodeSynchornizationManager ( AutomationElementTreeNode OwnerNode ) : System
OwnerNode AutomationElementTreeNode
return System

BeginInvokeOnUIThread() protected method

protected BeginInvokeOnUIThread ( Delegate Method ) : void
Method System.Delegate
return void

IsThisCallOnUIThread() protected method

this method returns true if this call is made on currentTestTypeRootNode UI-Thread. Else return false.
protected IsThisCallOnUIThread ( ) : bool
return bool

Lock() public method

This method is used to synchronize calls on AutomationElementTreeNode instance.
public Lock ( ) : IDisposable
return IDisposable

RunOnUIThread() public method

this method is called when something is neede to perform on UI-Thread. This method must be called only within the Lock method
public RunOnUIThread ( Delegate Method ) : void
Method System.Delegate Which method should be performed on UIThread.
return void