public State(State oState) { JobName = oState.JobName; CurrentDependency = oState.CurrentDependency; CurrentExecutingMode = oState.CurrentExecutingMode; ExecutionState = oState.ExecutionState; CurrentJobCode = oState.CurrentJobCode; CurrentJobHash = oState.CurrentJobHash; CurrentParameters = oState.CurrentParameters; CurrentStatusCollection = oState.CurrentStatusCollection; SourceFileName = oState.SourceFileName; }
public void ResetState() { string[] keys = new string[_dependencyStates.Keys.Count]; _dependencyStates.Keys.CopyTo(keys,0); foreach (string key in keys) { if (_dependencyStates[key].Equals(StateEnums.ExecutionState.WaitState) == false) _dependencyStates[key] = StateEnums.ExecutionState.PendingInitialization; } _dependencyState = StateEnums.ExecutionMode.Initialization; }
internal void ChangeMode(StateEnums.ExecutionMode newMode) { _dependencyState = newMode; }