コード例 #1
0
ファイル: State.cs プロジェクト: BrianGoff/BITS
 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;
 }
コード例 #2
0
ファイル: JobExeWrapper.cs プロジェクト: BrianGoff/BITS
 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;
 }
コード例 #3
0
ファイル: JobExeWrapper.cs プロジェクト: BrianGoff/BITS
 internal void ChangeMode(StateEnums.ExecutionMode newMode)
 {
     _dependencyState = newMode;
 }