Beispiel #1
0
        /// <summary>
        /// Provides a one-time, postprocessing functionality for the cmdlet.
        /// </summary>
        /// <remarks>
        /// We close the Core Service proxies here.
        /// </remarks>
        protected override void EndProcessing()
        {
            WriteVerbose("TcmCmdlet.EndProcessing");

            if (_coreServiceClient != null)
            {
                _coreServiceClient.Dispose();
            }

            if (_streamDownloadClient != null)
            {
                _streamDownloadClient.Dispose();
            }
        }