private void OnGetRuleByIdNotFound(object sender, GetRuleByIdNotFoundEventArgs e) { this.ReportRuleNotFoundById(e.Id); }
private void OnGetRuleByIdNotFound(object sender, GetRuleByIdNotFoundEventArgs e) { object[] id = new object[1]; id[0] = e.Id; base.WriteError(new ErrorRecord(new Exception(string.Format(CultureInfo.CurrentCulture, Resources.Rule_NotFoundById, id)), "GetRuleError", ErrorCategory.InvalidOperation, null)); }