public void AddInstance(Guid instanceId, Activity rootActivity)
 {
     try
     {
         base.Lock();
         InstanceMap writerData = base.GetWriterData();
         writerData[instanceId] = new InstanceData(rootActivity);
         base.SaveData(writerData);
     }
     finally
     {
         base.Unlock();
     }
 }
Ejemplo n.º 2
0
        // Controller invoked.
        public void AddInstance(Guid instanceId, Activity rootActivity)
        {
            try
            {
                Lock();

                InstanceMap instanceMap = GetWriterData();
                instanceMap[instanceId] = new InstanceData(rootActivity);
                SaveData(instanceMap);
            }
            finally
            {
                Unlock();
            }
        }
Ejemplo n.º 3
0
        object ICloneable.Clone()
        {
            InstanceData instanceData = new InstanceData(this.rootActivity);

            return(instanceData);
        }