Exemplo n.º 1
0
 public void FillInstanceMap(ActivityInstanceMap instanceMap)
 {
     if (base.SingleItem != null)
     {
         instanceMap.AddEntry(base.SingleItem);
     }
     else
     {
         for (int i = 0; i < base.MultipleItems.Count; i++)
         {
             ActivityInstanceReference reference = base.MultipleItems[i];
             instanceMap.AddEntry(reference);
         }
     }
 }
Exemplo n.º 2
0
                public void FillInstanceMap(ActivityInstanceMap instanceMap)
                {
                    Fx.Assert(this.Count > 0, "Should only call this when we have items");

                    if (this.SingleItem != null)
                    {
                        instanceMap.AddEntry(this.SingleItem);
                    }
                    else
                    {
                        for (var i = 0; i < this.MultipleItems.Count; i++)
                        {
                            var reference = this.MultipleItems[i];

                            instanceMap.AddEntry(reference);
                        }
                    }
                }
 public void FillInstanceMap(ActivityInstanceMap instanceMap)
 {
     if (this.firstWorkItem != null)
     {
         ActivityInstanceMap.IActivityReference firstWorkItem = this.firstWorkItem as ActivityInstanceMap.IActivityReference;
         if (firstWorkItem != null)
         {
             instanceMap.AddEntry(firstWorkItem, true);
         }
         if ((this.workItemQueue != null) && (this.workItemQueue.Count > 0))
         {
             for (int i = 0; i < this.workItemQueue.Count; i++)
             {
                 firstWorkItem = this.workItemQueue[i] as ActivityInstanceMap.IActivityReference;
                 if (firstWorkItem != null)
                 {
                     instanceMap.AddEntry(firstWorkItem, true);
                 }
             }
         }
     }
 }