Exemple #1
0
        private void AddDoor(DoorService service, DoorControl door)
        {
            Guid id = Guid.NewGuid();

            service.AddDoor(id, door);

            // Now add in a workflow for the door
            WorkflowInstance instance = _runtime.CreateWorkflow(typeof(DoorsWorkflow.DoorFlow), null, id);

            door.WorkflowID = id;
            door.Runtime    = _runtime;

            instance.Start();
        }
Exemple #2
0
 public void AddDoor(Guid id, DoorControl control)
 {
     _doorControls.Add(id, control);
 }