Exemple #1
0
 /// <summary>
 /// Constructor method.
 /// </summary>
 /// <param name="cmdlet"></param>
 public CmdletOperationRemoveCimInstance(Cmdlet cmdlet,
                                         CimRemoveCimInstance cimRemoveCimInstance)
     : base(cmdlet)
 {
     ValidationHelper.ValidateNoNullArgument(cimRemoveCimInstance, cimRemoveCimInstanceParameterName);
     this.removeCimInstance = cimRemoveCimInstance;
 }
        /// <summary>
        /// BeginProcessing method.
        /// </summary>
        protected override void BeginProcessing()
        {
            CimRemoveCimInstance cimRemoveInstance = this.GetOperationAgent() ?? CreateOperationAgent();

            this.CmdletOperation = new CmdletOperationRemoveCimInstance(this, cimRemoveInstance);
            this.AtBeginProcess  = false;
        }
Exemple #3
0
        /// <summary>
        /// <para>
        /// Create <see cref="CimRemoveCimInstance"/> object, which is
        /// used to delegate all Remove-CimInstance operations.
        /// </para>
        /// </summary>
        /// <returns></returns>
        CimRemoveCimInstance CreateOperationAgent()
        {
            CimRemoveCimInstance cimRemoveInstance = new CimRemoveCimInstance();

            this.AsyncOperation = cimRemoveInstance;
            return(cimRemoveInstance);
        }
Exemple #4
0
        }//End BeginProcessing()

        /// <summary>
        /// ProcessRecord method.
        /// </summary>
        protected override void ProcessRecord()
        {
            base.CheckParameterSet();
            CimRemoveCimInstance cimRemoveInstance = this.GetOperationAgent();

            cimRemoveInstance.RemoveCimInstance(this);
            cimRemoveInstance.ProcessActions(this.CmdletOperation);
        }//End ProcessRecord()
Exemple #5
0
        }//End ProcessRecord()

        /// <summary>
        /// EndProcessing method.
        /// </summary>
        protected override void EndProcessing()
        {
            CimRemoveCimInstance cimRemoveInstance = this.GetOperationAgent();

            if (cimRemoveInstance != null)
            {
                cimRemoveInstance.ProcessRemainActions(this.CmdletOperation);
            }
        }//End EndProcessing()
        protected override void EndProcessing()
        {
            CimRemoveCimInstance operationAgent = this.GetOperationAgent();

            if (operationAgent != null)
            {
                operationAgent.ProcessRemainActions(this.CmdletOperation);
            }
        }
        protected override void BeginProcessing()
        {
            CimRemoveCimInstance operationAgent = this.GetOperationAgent();

            if (operationAgent == null)
            {
                operationAgent = this.CreateOperationAgent();
            }
            this.CmdletOperation = new CmdletOperationRemoveCimInstance(this, operationAgent);
            base.AtBeginProcess  = false;
        }
 /// <summary>
 /// <para>
 /// Create <see cref="CimRemoveCimInstance"/> object, which is
 /// used to delegate all Remove-CimInstance operations.
 /// </para>
 /// </summary>
 /// <returns></returns>
 CimRemoveCimInstance CreateOperationAgent()
 {
     CimRemoveCimInstance cimRemoveInstance = new CimRemoveCimInstance();
     this.AsyncOperation = cimRemoveInstance;
     return cimRemoveInstance;
 }
		public CmdletOperationRemoveCimInstance(Cmdlet cmdlet, CimRemoveCimInstance cimRemoveCimInstance) : base(cmdlet)
		{
			ValidationHelper.ValidateNoNullArgument(cimRemoveCimInstance, "cimRemoveCimInstance");
			this.removeCimInstance = cimRemoveCimInstance;
		}
		private CimRemoveCimInstance CreateOperationAgent()
		{
			CimRemoveCimInstance cimRemoveCimInstance = new CimRemoveCimInstance();
			base.AsyncOperation = cimRemoveCimInstance;
			return cimRemoveCimInstance;
		}