/// <summary> /// Responds to the interruption. /// </summary> /// <param name="octRepository">The repository to call against.</param> /// <param name="interruption"></param> /// <param name="response"></param> /// <param name="note"></param> public static void InterruptionReponse(OctopusRepository octRepository, InterruptionResource interruption, InterruptionResponse response, string note) { var stringResponse = Enum.GetName(typeof(InterruptionResponse), response); interruption.Form.Values[ResourceStrings.InterruptionGuidanceKey] = stringResponse; interruption.Form.Values[ResourceStrings.InterruptionNoteKey] = note; octRepository.Interruptions.TakeResponsibility(interruption); octRepository.Interruptions.Submit(interruption); }
/// <summary> /// Responds to the current pending interruption. /// </summary> /// <param name="response">Response passed to the interruption.</param> /// <param name="note">Note passed to the interruption.</param> public void RespondToInterruption(InterruptionResponse response, string note) { UpdateInterruption(); InterruptionHelper.InterruptionReponse(octRepositoryToManage, currentInterruptionToProcess, response, note); UpdatePreviousInterruption(); }