C# Class CmisSync.CmisTree.AsyncNodeLoader

Loads child nodes of the given root node
Afficher le fichier Open project: OpenDataSpace/CmisSync Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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
Résultat CmisSync.Lib.Cmis

Cancel() public méthode

Cancels the async loading procedure
public Cancel ( ) : void
Résultat void

Load() public méthode

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

MergeFolderTrees() public static méthode

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
Résultat void

MergeNewNodeIntoOldNode() public static méthode

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
Résultat void