Esempio n. 1
0
        /// <summary>
        /// <para>
        /// Create <see cref="CimGetCimClass"/> object, which is
        /// used to delegate all Get-CimClass operations.
        /// </para>
        /// </summary>
        /// <returns></returns>
        CimGetCimClass CreateOperationAgent()
        {
            CimGetCimClass cimGetCimClass = new CimGetCimClass();

            this.AsyncOperation = cimGetCimClass;
            return(cimGetCimClass);
        }
Esempio n. 2
0
        private CimGetCimClass CreateOperationAgent()
        {
            CimGetCimClass cimGetCimClass = new CimGetCimClass();

            base.AsyncOperation = cimGetCimClass;
            return(cimGetCimClass);
        }
        /// <summary>
        /// ProcessRecord method.
        /// </summary>
        protected override void ProcessRecord()
        {
            base.CheckParameterSet();
            CimGetCimClass cimGetCimClass = this.GetOperationAgent() ?? CreateOperationAgent();

            cimGetCimClass.GetCimClass(this);
            cimGetCimClass.ProcessActions(this.CmdletOperation);
        }
        /// <summary>
        /// EndProcessing method.
        /// </summary>
        protected override void EndProcessing()
        {
            CimGetCimClass cimGetCimClass = this.GetOperationAgent();

            if (cimGetCimClass != null)
            {
                cimGetCimClass.ProcessRemainActions(this.CmdletOperation);
            }
        }
Esempio n. 5
0
        protected override void ProcessRecord()
        {
            base.CheckParameterSet();
            CimGetCimClass operationAgent = this.GetOperationAgent();

            if (operationAgent == null)
            {
                operationAgent = this.CreateOperationAgent();
            }
            operationAgent.GetCimClass(this);
            operationAgent.ProcessActions(this.CmdletOperation);
        }
Esempio n. 6
0
 /// <summary>
 /// <para>
 /// Create <see cref="CimGetCimClass"/> object, which is
 /// used to delegate all Get-CimClass operations.
 /// </para>
 /// </summary>
 /// <returns></returns>
 CimGetCimClass CreateOperationAgent()
 {
     CimGetCimClass cimGetCimClass = new CimGetCimClass();
     this.AsyncOperation = cimGetCimClass;
     return cimGetCimClass;
 }
Esempio n. 7
0
		private CimGetCimClass CreateOperationAgent()
		{
			CimGetCimClass cimGetCimClass = new CimGetCimClass();
			base.AsyncOperation = cimGetCimClass;
			return cimGetCimClass;
		}