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

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