Ejemplo n.º 1
0
        /// <summary>
        /// BeginProcessing method.
        /// </summary>
        protected override void BeginProcessing()
        {
            CimSetCimInstance cimSetCimInstance = this.GetOperationAgent() ?? CreateOperationAgent();

            this.CmdletOperation = new CmdletOperationSetCimInstance(this, cimSetCimInstance);
            this.AtBeginProcess  = false;
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Constructor method.
 /// </summary>
 /// <param name="cmdlet"></param>
 public CmdletOperationSetCimInstance(Cmdlet cmdlet,
                                      CimSetCimInstance theCimSetCimInstance)
     : base(cmdlet)
 {
     ValidationHelper.ValidateNoNullArgument(theCimSetCimInstance, theCimSetCimInstanceParameterName);
     this.setCimInstance = theCimSetCimInstance;
 }
Ejemplo n.º 3
0
        /// <summary>
        /// <para>
        /// Create <see cref="CimSetCimInstance"/> object, which is
        /// used to delegate all Set-CimInstance operations.
        /// </para>
        /// </summary>
        /// <returns></returns>
        private CimSetCimInstance CreateOperationAgent()
        {
            CimSetCimInstance cimSetCimInstance = new CimSetCimInstance();

            this.AsyncOperation = cimSetCimInstance;
            return(cimSetCimInstance);
        }
Ejemplo n.º 4
0
        /// <summary>
        /// ProcessRecord method.
        /// </summary>
        protected override void ProcessRecord()
        {
            base.CheckParameterSet();
            CimSetCimInstance cimSetCimInstance = this.GetOperationAgent();

            cimSetCimInstance.SetCimInstance(this);
            cimSetCimInstance.ProcessActions(this.CmdletOperation);
        }
Ejemplo n.º 5
0
        /// <summary>
        /// EndProcessing method.
        /// </summary>
        protected override void EndProcessing()
        {
            CimSetCimInstance cimSetCimInstance = this.GetOperationAgent();

            if (cimSetCimInstance != null)
            {
                cimSetCimInstance.ProcessRemainActions(this.CmdletOperation);
            }
        }
Ejemplo n.º 6
0
        protected override void BeginProcessing()
        {
            CimSetCimInstance operationAgent = this.GetOperationAgent();

            if (operationAgent == null)
            {
                operationAgent = this.CreateOperationAgent();
            }
            this.CmdletOperation = new CmdletOperationSetCimInstance(this, operationAgent);
            base.AtBeginProcess  = false;
        }
Ejemplo n.º 7
0
 /// <summary>
 /// <para>
 /// Create <see cref="CimSetCimInstance"/> object, which is
 /// used to delegate all Set-CimInstance operations.
 /// </para>
 /// </summary>
 /// <returns></returns>
 CimSetCimInstance CreateOperationAgent()
 {
     CimSetCimInstance cimSetCimInstance = new CimSetCimInstance();
     this.AsyncOperation = cimSetCimInstance;
     return cimSetCimInstance;
 }
Ejemplo n.º 8
0
		public CmdletOperationSetCimInstance(Cmdlet cmdlet, CimSetCimInstance theCimSetCimInstance) : base(cmdlet)
		{
			ValidationHelper.ValidateNoNullArgument(theCimSetCimInstance, "theCimSetCimInstance");
			this.setCimInstance = theCimSetCimInstance;
		}
Ejemplo n.º 9
0
		private CimSetCimInstance CreateOperationAgent()
		{
			CimSetCimInstance cimSetCimInstance = new CimSetCimInstance();
			base.AsyncOperation = cimSetCimInstance;
			return cimSetCimInstance;
		}