public static ProcessState FromException(string message, ApplicationException ex) { var state = new ProcessState(ex); state.Messages = new List<string>() { message }; return state; }
public static ProcessState FromException(string message, ApplicationException ex) { var state = new ProcessState(ex); state.Messages = new List <string>() { message }; return(state); }
public bool IsPersisted(ProcessState processState) { var isPersisted = IsPersisted(); if (!isPersisted) { processState.Status = Enumerations.ProcessStatus.Warning; processState.Messages = new List <string> { "Forecast has not been saved" }; } return(isPersisted); }
public void AddProcessState(ProcessState state) { _processStates.Add(state); }
public bool IsPersisted(ProcessState processState) { var isPersisted = IsPersisted(); if (!isPersisted) { processState.Status = Enumerations.ProcessStatus.Warning; processState.Messages = new List<string> { "Forecast has not been saved" }; } return isPersisted; }
public void SetProcessState(ProcessState state) { _processStates = new List<ProcessState>() { state }; }