/// <summary> /// BeginProcessing method. /// </summary> protected override void BeginProcessing() { sam = new Sam(); }
/// <summary> /// EndProcessing method. /// </summary> protected override void EndProcessing() { if (sam != null) { sam.Dispose(); sam = null; } }
/// <summary> /// BeginProcessing method. /// </summary> protected override void BeginProcessing() { if (this.HasParameter("AccountExpires") && AccountNeverExpires.IsPresent) { InvalidParametersException ex = new InvalidParametersException("AccountExpires", "AccountNeverExpires"); ThrowTerminatingError(ex.MakeErrorRecord()); } sam = new Sam(); }