Beispiel #1
0
        /// <summary>
        /// ProcessRecord method.
        /// </summary>
        protected override void ProcessRecord()
        {
            base.CheckParameterSet();
            this.CheckArgument();
            CimGetInstance cimGetInstance = this.GetOperationAgent() ?? CreateOperationAgent();

            cimGetInstance.GetCimInstance(this);
            cimGetInstance.ProcessActions(this.CmdletOperation);
        }
Beispiel #2
0
        protected override void ProcessRecord()
        {
            base.CheckParameterSet();
            this.CheckArgument();
            CimGetInstance operationAgent = this.GetOperationAgent();

            if (operationAgent == null)
            {
                operationAgent = this.CreateOperationAgent();
            }
            operationAgent.GetCimInstance(this);
            operationAgent.ProcessActions(this.CmdletOperation);
        }