コード例 #1
0
        public static ProcessState FromException(string message, ApplicationException ex)
        {
            var state = new ProcessState(ex);
            state.Messages = new List<string>() { message };

            return state;
        }
コード例 #2
0
        public static ProcessState FromException(string message, ApplicationException ex)
        {
            var state = new ProcessState(ex);

            state.Messages = new List <string>()
            {
                message
            };

            return(state);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
 public void AddProcessState(ProcessState state)
 {
     _processStates.Add(state);
 }
コード例 #5
0
 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;
 }
コード例 #6
0
 public void SetProcessState(ProcessState state)
 {
     _processStates = new List<ProcessState>() { state };
 }
コード例 #7
0
 public void AddProcessState(ProcessState state)
 {
     _processStates.Add(state);
 }