示例#1
0
 /// <summary>
 /// Constructor method.
 /// </summary>
 /// <param name="cmdlet"></param>
 public CmdletOperationInvokeCimMethod(Cmdlet cmdlet,
                                       CimInvokeCimMethod theCimInvokeCimMethod)
     : base(cmdlet)
 {
     ValidationHelper.ValidateNoNullArgument(theCimInvokeCimMethod, theCimInvokeCimMethodParameterName);
     this.cimInvokeCimMethod = theCimInvokeCimMethod;
 }
        /// <summary>
        /// <para>
        /// Create <see cref="CimInvokeCimMethod"/> object, which is
        /// used to delegate all Invoke-CimMethod operations.
        /// </para>
        /// </summary>
        /// <returns></returns>
        CimInvokeCimMethod CreateOperationAgent()
        {
            CimInvokeCimMethod cimInvokeMethod = new CimInvokeCimMethod();

            this.AsyncOperation = cimInvokeMethod;
            return(cimInvokeMethod);
        }
        private CimInvokeCimMethod CreateOperationAgent()
        {
            CimInvokeCimMethod cimInvokeCimMethod = new CimInvokeCimMethod();

            base.AsyncOperation = cimInvokeCimMethod;
            return(cimInvokeCimMethod);
        }
示例#4
0
        /// <summary>
        /// EndProcessing method.
        /// </summary>
        protected override void EndProcessing()
        {
            CimInvokeCimMethod cimInvokeMethod = this.GetOperationAgent();

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

            cimInvokeMethod.InvokeCimMethod(this);
            cimInvokeMethod.ProcessActions(this.CmdletOperation);
        }
        protected override void EndProcessing()
        {
            CimInvokeCimMethod operationAgent = this.GetOperationAgent();

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

            if (cimInvokeMethod == null)
            {
                cimInvokeMethod = CreateOperationAgent();
            }
            this.CmdletOperation = new CmdletOperationInvokeCimMethod(this, cimInvokeMethod);
            this.AtBeginProcess  = false;
        }//End BeginProcessing()
        protected override void BeginProcessing()
        {
            CimInvokeCimMethod operationAgent = this.GetOperationAgent();

            if (operationAgent == null)
            {
                operationAgent = this.CreateOperationAgent();
            }
            this.CmdletOperation = new CmdletOperationInvokeCimMethod(this, operationAgent);
            base.AtBeginProcess  = false;
        }
示例#9
0
		private CimInvokeCimMethod CreateOperationAgent()
		{
			CimInvokeCimMethod cimInvokeCimMethod = new CimInvokeCimMethod();
			base.AsyncOperation = cimInvokeCimMethod;
			return cimInvokeCimMethod;
		}
示例#10
0
 /// <summary>
 /// <para>
 /// Create <see cref="CimInvokeCimMethod"/> object, which is
 /// used to delegate all Invoke-CimMethod operations.
 /// </para>
 /// </summary>
 /// <returns></returns>
 CimInvokeCimMethod CreateOperationAgent()
 {
     CimInvokeCimMethod cimInvokeMethod = new CimInvokeCimMethod();
     this.AsyncOperation = cimInvokeMethod;
     return cimInvokeMethod;
 }
		public CmdletOperationInvokeCimMethod(Cmdlet cmdlet, CimInvokeCimMethod theCimInvokeCimMethod) : base(cmdlet)
		{
			ValidationHelper.ValidateNoNullArgument(theCimInvokeCimMethod, "theCimInvokeCimMethod");
			this.cimInvokeCimMethod = theCimInvokeCimMethod;
		}