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(); }
public void AddDoor(Guid id, DoorControl control) { _doorControls.Add(id, control); }