/// <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;
 }
        /// <summary>
        /// EndProcessing method.
        /// </summary>
        protected override void EndProcessing()
        {
            CimInvokeCimMethod cimInvokeMethod = this.GetOperationAgent();

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

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