Esempio n. 1
0
		public override void Execute(CmdletOperationBase cmdlet)
		{
			ValidationHelper.ValidateNoNullArgument(cmdlet, "cmdlet");
			CimWriteMessageChannel cimWriteMessageChannel = (CimWriteMessageChannel)this.channel;
			switch (cimWriteMessageChannel)
			{
				case CimWriteMessageChannel.Warning:
				{
					cmdlet.WriteWarning(this.message);
					return;
				}
				case CimWriteMessageChannel.Verbose:
				{
					cmdlet.WriteVerbose(this.message);
					return;
				}
				case CimWriteMessageChannel.Debug:
				{
					cmdlet.WriteDebug(this.message);
					return;
				}
				default:
				{
					return;
				}
			}
		}
Esempio n. 2
0
        public override void Execute(CmdletOperationBase cmdlet)
        {
            ValidationHelper.ValidateNoNullArgument(cmdlet, "cmdlet");
            CimWriteMessageChannel cimWriteMessageChannel = (CimWriteMessageChannel)this.channel;

            switch (cimWriteMessageChannel)
            {
            case CimWriteMessageChannel.Warning:
            {
                cmdlet.WriteWarning(this.message);
                return;
            }

            case CimWriteMessageChannel.Verbose:
            {
                cmdlet.WriteVerbose(this.message);
                return;
            }

            case CimWriteMessageChannel.Debug:
            {
                cmdlet.WriteDebug(this.message);
                return;
            }

            default:
            {
                return;
            }
            }
        }
Esempio n. 3
0
        /// <summary>
        /// <para>
        /// Write message to the target channel
        /// </para>
        /// </summary>
        /// <param name="cmdlet"></param>
        public override void Execute(CmdletOperationBase cmdlet)
        {
            ValidationHelper.ValidateNoNullArgument(cmdlet, "cmdlet");

            switch ((CimWriteMessageChannel)channel)
            {
                case CimWriteMessageChannel.Verbose:
                    cmdlet.WriteVerbose(message);
                    break;
                case CimWriteMessageChannel.Warning:
                    cmdlet.WriteWarning(message);
                    break;
                case CimWriteMessageChannel.Debug:
                    cmdlet.WriteDebug(message);
                    break;
                default:
                    break;
            }
        }
Esempio n. 4
0
        /// <summary>
        /// <para>
        /// Write message to the target channel
        /// </para>
        /// </summary>
        /// <param name="cmdlet"></param>
        public override void Execute(CmdletOperationBase cmdlet)
        {
            ValidationHelper.ValidateNoNullArgument(cmdlet, "cmdlet");

            switch ((CimWriteMessageChannel)channel)
            {
            case CimWriteMessageChannel.Verbose:
                cmdlet.WriteVerbose(message);
                break;

            case CimWriteMessageChannel.Warning:
                cmdlet.WriteWarning(message);
                break;

            case CimWriteMessageChannel.Debug:
                cmdlet.WriteDebug(message);
                break;

            default:
                break;
            }
        }