/// <summary> /// Initializes a new instance of the <see cref="CmdletOperationSetCimInstance"/> class. /// </summary> /// <param name="cmdlet"></param> public CmdletOperationSetCimInstance(Cmdlet cmdlet, CimSetCimInstance theCimSetCimInstance) : base(cmdlet) { ValidationHelper.ValidateNoNullArgument(theCimSetCimInstance, theCimSetCimInstanceParameterName); this.setCimInstance = theCimSetCimInstance; }
/// <summary> /// BeginProcessing method. /// </summary> protected override void BeginProcessing() { CimSetCimInstance cimSetCimInstance = this.GetOperationAgent() ?? CreateOperationAgent(); this.CmdletOperation = new CmdletOperationSetCimInstance(this, cimSetCimInstance); this.AtBeginProcess = false; }
/// <summary> /// ProcessRecord method. /// </summary> protected override void ProcessRecord() { base.CheckParameterSet(); CimSetCimInstance cimSetCimInstance = this.GetOperationAgent(); cimSetCimInstance.SetCimInstance(this); cimSetCimInstance.ProcessActions(this.CmdletOperation); }
/// <summary> /// EndProcessing method. /// </summary> protected override void EndProcessing() { CimSetCimInstance cimSetCimInstance = this.GetOperationAgent(); if (cimSetCimInstance != null) { cimSetCimInstance.ProcessRemainActions(this.CmdletOperation); } }