public CommandProgressMonitorProvider(BaseCommand cmdlet)
        {
            if (cmdlet == null)
                throw new ArgumentNullException("cmdlet");

            this.cmdlet = cmdlet;
        }
Esempio n. 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CommandLogger" /> class.
        /// </summary>
        /// <param name="cmdlet">The <see cref="Cmdlet" /> instance to channel
        /// log messages to.</param>
        public CommandLogger(BaseCommand cmdlet)
        {
            if (cmdlet == null)
                throw new ArgumentNullException("cmdlet");

            this.cmdlet = cmdlet;
        }