/// <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;
 }
Exemple #2
0
        /// <summary>
        /// BeginProcessing method.
        /// </summary>
        protected override void BeginProcessing()
        {
            CimSetCimInstance cimSetCimInstance = this.GetOperationAgent() ?? CreateOperationAgent();

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

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

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