Beispiel #1
0
 private void GraphParameterValue_OnGraphParameterUpdate(GraphParameterValue param)
 {
     if (GraphInst != null)
     {
         if (GraphInst.Parameters.Values.Contains(param) || GraphInst.CustomParameters.Contains(param))
         {
             GraphInst.TryAndProcess();
         }
     }
 }
Beispiel #2
0
 public override Task GetTask()
 {
     return(Task.Factory.StartNew(() =>
     {
         PrepareProcess();
     })
            .ContinueWith(t =>
     {
         if (GraphInst != null)
         {
             GraphInst.TryAndProcess();
         }
     }, Context));
 }
Beispiel #3
0
        public override void TryAndProcess()
        {
            if (!Async)
            {
                PrepareProcess();
                if (GraphInst != null)
                {
                    GraphInst.TryAndProcess();
                }
                return;
            }

            if (ParentGraph != null)
            {
                ParentGraph.Schedule(this);
            }
        }