Exemplo n.º 1
0
		/// <summary>
		/// This method resets the object to its initial state.
		/// </summary>
		public override void Reset()
		{
			base.Reset();

            //mIsCallback = false;
			mCommand = null;
			mJobCallback = null;
			jobThread = null;
			mDJobType = DJobType.Command;
			token = null;
            //mSecMan = null;
			mChildJobDepth = 0;
			mTotalChildJobCount = 0;
			mJobCompletionType = SCMJobCompletionType.OnExit;

            delJobGet = null;
            delSecurityManagerJobGet = null;
            delCompletionJobGet = null;

            //if (childJobs != null)
            //    childJobs.Clear();
		}
Exemplo n.º 2
0
		/// <summary>
		/// This method initializes the session.
		/// </summary>
		/// <param name="secMan">The security manager.</param>
		/// <param name="jobRQ">The job request.</param>
		/// <param name="token">The session token.</param>
		/// <param name="parentJob">The parent job. This should be left null if this is not a child job.</param>
		internal void Initialize(JobBase jobRQ, 
            SessionToken token, SecurityManagerJob parentJob, 
			CommandRSCallback RSCallback, CommandProgressCallback ProgressCallback)
		{
			try
			{
                //mSecMan = secMan;
				mParentJob=parentJob;
				if (parentJob!=null)
					mChildJobDepth = parentJob.ChildJobDepth+1;
				mRSCallback=RSCallback;
				mProgressCallback=ProgressCallback;
				mBaseJob = jobRQ;
				this.token=token;
			}
			catch(Exception ex)
			{
				Reset();
				throw ex;
			}
		}