/// <summary>
 /// Initializes a new instance of the <see cref="CmdletOperationSetCimInstance"/> class.
 /// </summary>
 /// <param name="cmdlet"></param>
 public CmdletOperationSetCimInstance(Cmdlet cmdlet,
                                      CimSetCimInstance theCimSetCimInstance)
     : base(cmdlet)
 {
     ValidationHelper.ValidateNoNullArgument(theCimSetCimInstance, theCimSetCimInstanceParameterName);
     this.setCimInstance = theCimSetCimInstance;
 }
示例#2
0
        /// <summary>
        /// BeginProcessing method.
        /// </summary>
        protected override void BeginProcessing()
        {
            CimSetCimInstance cimSetCimInstance = this.GetOperationAgent() ?? CreateOperationAgent();

            this.CmdletOperation = new CmdletOperationSetCimInstance(this, cimSetCimInstance);
            this.AtBeginProcess  = false;
        }
示例#3
0
        /// <summary>
        /// ProcessRecord method.
        /// </summary>
        protected override void ProcessRecord()
        {
            base.CheckParameterSet();
            CimSetCimInstance cimSetCimInstance = this.GetOperationAgent();

            cimSetCimInstance.SetCimInstance(this);
            cimSetCimInstance.ProcessActions(this.CmdletOperation);
        }
示例#4
0
        /// <summary>
        /// EndProcessing method.
        /// </summary>
        protected override void EndProcessing()
        {
            CimSetCimInstance cimSetCimInstance = this.GetOperationAgent();

            if (cimSetCimInstance != null)
            {
                cimSetCimInstance.ProcessRemainActions(this.CmdletOperation);
            }
        }