/// <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); }
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); } }
protected override void ProcessRecord() { base.CheckParameterSet(); CimGetCimClass operationAgent = this.GetOperationAgent(); if (operationAgent == null) { operationAgent = this.CreateOperationAgent(); } operationAgent.GetCimClass(this); operationAgent.ProcessActions(this.CmdletOperation); }
/// <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; }
private CimGetCimClass CreateOperationAgent() { CimGetCimClass cimGetCimClass = new CimGetCimClass(); base.AsyncOperation = cimGetCimClass; return cimGetCimClass; }