/// <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); }
/// <summary> /// EndProcessing method. /// </summary> protected override void EndProcessing() { CimInvokeCimMethod cimInvokeMethod = this.GetOperationAgent(); if (cimInvokeMethod != null) { cimInvokeMethod.ProcessRemainActions(this.CmdletOperation); } }
/// <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; }
private CimInvokeCimMethod CreateOperationAgent() { CimInvokeCimMethod cimInvokeCimMethod = new CimInvokeCimMethod(); base.AsyncOperation = cimInvokeCimMethod; return cimInvokeCimMethod; }
/// <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; }