C# Class Dynamo.Scheduler.UpdateGraphAsyncTask

Inheritance: AsyncTask
Show file Open project: DynamoDS/Dynamo Class Usage Examples

Private Properties

Property Type Description
ComputeModifiedNodes IEnumerable
Contains bool
GetDownstreamNodes void
Initialize bool
IsScheduledAfter bool
UpdateGraphAsyncTask System

Protected Methods

Method Description
CanMergeWithCore ( AsyncTask otherTask ) : TaskMergeInstruction
HandleTaskCompletionCore ( ) : void
HandleTaskExecutionCore ( ) : void

Private Methods

Method Description
ComputeModifiedNodes ( WorkspaceModel workspace ) : IEnumerable

This method is called to gather all the nodes whose cached values should be updated after graph update is done. This set of nodes includes nodes that are explicitly marked as requiring update, as well as all its downstream nodes.

Contains ( UpdateGraphAsyncTask other ) : bool

Returns true if this task's graph sync data is a super set of the other

GetDownstreamNodes ( NodeModel node, ICollection gathered ) : void

Call this method to recursively gather downstream nodes of a given node. Returns only those nodes that are in RUN state.

Initialize ( Dynamo.Engine.EngineController controller, WorkspaceModel workspace ) : bool

This method is called by code that intends to start a graph update. This method is called on the main thread where node collection in a WorkspaceModel can be safely accessed.

IsScheduledAfter ( UpdateGraphAsyncTask other ) : bool
UpdateGraphAsyncTask ( IScheduler scheduler, bool verboseLogging1 ) : System

Method Details

CanMergeWithCore() protected method

protected CanMergeWithCore ( AsyncTask otherTask ) : TaskMergeInstruction
otherTask AsyncTask
return TaskMergeInstruction

HandleTaskCompletionCore() protected method

protected HandleTaskCompletionCore ( ) : void
return void

HandleTaskExecutionCore() protected method

protected HandleTaskExecutionCore ( ) : void
return void