Exemplo n.º 1
0
        public void RemoveTaskDefinition(Id taskId)
        {
            if (!taskId.AssertIsValid())
            {
                return;
            }

            if (!this.AssertContainsTaskId(taskId))
            {
                return;
            }

            TaskDefinition definition = this.taskDefinitions[taskId];

            ErrorHandling.AssertIsNotNull(definition, "Task definition is null!");

            definition.id = Id.INVALID;
            this.taskDefinitions.Remove(taskId);
        }