protected override void EndProcessing() { base.EndProcessing(); this.WriteTaskSummary(); this.transferJobRunner.Dispose(); this.transferJobRunner = null; }
/// <summary> /// Dispose DataMovement cmdlet /// </summary> /// <param name="disposing">User disposing</param> protected virtual void Dispose(bool disposing) { if (disposing) { if (this.transferJobRunner != null) { this.transferJobRunner.Dispose(); this.transferJobRunner = null; } } }
/// <summary> /// Dispose DataMovement cmdlet /// </summary> /// <param name="disposing">User disposing</param> protected override void Dispose(bool disposing) { if (disposing) { if (this.transferJobRunner != null) { this.transferJobRunner.Dispose(); this.transferJobRunner = null; } } base.Dispose(disposing); }
protected override void BeginProcessing() { base.BeginProcessing(); this.transferJobRunner = TransferJobRunnerFactory.CreateRunner(this.ConcurrentTaskCount ?? DefaultConcurrentTaskCount); }
/// <summary> /// Sets the cached runner. This is mainly for testing purpose. /// </summary> /// <param name="runner"> /// Indicating the instance of the cached runner. /// </param> internal static void SetCachedRunner(ITransferJobRunner runner) { cachedRunner = runner; }
/// <summary> /// Cmdlet begin processing /// </summary> protected override void BeginProcessing() { base.BeginProcessing(); this.transferJobRunner = TransferJobRunnerFactory.CreateRunner(this.GetCmdletConcurrency()); }