public CommandProgressMonitorProvider(BaseCommand cmdlet) { if (cmdlet == null) throw new ArgumentNullException("cmdlet"); this.cmdlet = cmdlet; }
/// <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; }