C# Class CmisSync.CmisTree.AsyncNodeLoader

Loads child nodes of the given root node
Exibir arquivo Open project: OpenDataSpace/CmisSync Class Usage Examples

Public Methods

Method Description
AsyncNodeLoader ( RootFolder root, CmisRepoCredentials credentials, LoadChildrenDelegate method, CheckChildrenDelegate check ) : CmisSync.Lib.Cmis

This class can be used to load children nodes asynchronous in another thread

Cancel ( ) : void

Cancels the async loading procedure

Load ( Node node ) : void

Enqueues the given node to be loaded asynchronously

MergeFolderTrees ( Node node, List children ) : void

Merges the given new child list into the existing childs of the given node

MergeNewNodeIntoOldNode ( Node oldNode, Node newNode ) : void

Merges the state of the new node into the old node, excerpt the children

Private Methods

Method Description
DoWork ( object sender, DoWorkEventArgs e ) : void
Finished ( object sender, RunWorkerCompletedEventArgs e ) : void
Load ( ) : void
SetNodeTreeStatus ( Node node, LoadingStatus status ) : void

Method Details

AsyncNodeLoader() public method

This class can be used to load children nodes asynchronous in another thread
public AsyncNodeLoader ( RootFolder root, CmisRepoCredentials credentials, LoadChildrenDelegate method, CheckChildrenDelegate check ) : CmisSync.Lib.Cmis
root RootFolder The repository Node
credentials CmisSync.Lib.Config.CmisRepoCredentials The server crendentials to load children for the given Cmis Repo
method LoadChildrenDelegate Function for loading nodes
check CheckChildrenDelegate
return CmisSync.Lib.Cmis

Cancel() public method

Cancels the async loading procedure
public Cancel ( ) : void
return void

Load() public method

Enqueues the given node to be loaded asynchronously
public Load ( Node node ) : void
node Node to be loaded next
return void

MergeFolderTrees() public static method

Merges the given new child list into the existing childs of the given node
public static MergeFolderTrees ( Node node, List children ) : void
node Node
children List
return void

MergeNewNodeIntoOldNode() public static method

Merges the state of the new node into the old node, excerpt the children
public static MergeNewNodeIntoOldNode ( Node oldNode, Node newNode ) : void
oldNode Node
newNode Node
return void