コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CmdletOperationInvokeCimMethod"/> class.
 /// </summary>
 /// <param name="cmdlet"></param>
 public CmdletOperationInvokeCimMethod(Cmdlet cmdlet,
                                       CimInvokeCimMethod theCimInvokeCimMethod)
     : base(cmdlet)
 {
     ValidationHelper.ValidateNoNullArgument(theCimInvokeCimMethod, theCimInvokeCimMethodParameterName);
     this.cimInvokeCimMethod = theCimInvokeCimMethod;
 }
コード例 #2
0
        /// <summary>
        /// EndProcessing method.
        /// </summary>
        protected override void EndProcessing()
        {
            CimInvokeCimMethod cimInvokeMethod = this.GetOperationAgent();

            if (cimInvokeMethod != null)
            {
                cimInvokeMethod.ProcessRemainActions(this.CmdletOperation);
            }
        }
コード例 #3
0
        /// <summary>
        /// ProcessRecord method.
        /// </summary>
        protected override void ProcessRecord()
        {
            base.CheckParameterSet();
            this.CheckArgument();
            CimInvokeCimMethod cimInvokeMethod = this.GetOperationAgent();

            cimInvokeMethod.InvokeCimMethod(this);
            cimInvokeMethod.ProcessActions(this.CmdletOperation);
        }