private void RaiseAfterAddToIndex(Guid rowId, IPublishedContent content) { if (AfterAddToIndex != null) { try { AfterAddToIndex.Invoke(this, new FormEditorEventArgs(rowId, content)); } catch (Exception ex) { // an event handler failed - log error and continue Log.Error(ex, "An event handler for AfterAddToIndex threw an exception."); } } }
private void RaiseAfterAddToIndex() { if (AfterAddToIndex != null) { try { AfterAddToIndex.Invoke(this, new EventArgs()); } catch (Exception ex) { // an event handler failed - log error and continue Log.Error(ex, "An event handler for AfterAddToIndex threw an exception."); } } }
private void RaiseAfterAddToIndex(IPublishedContent content, List <Field> fields) { foreach (var field in fields) { field.AfterAddToIndex(fields, content); } if (AfterAddToIndex != null) { try { AfterAddToIndex.Invoke(this, new FormEditorEventArgs(RowId, content)); } catch (Exception ex) { // an event handler failed - log error and continue Log.Error(ex, "An event handler for AfterAddToIndex threw an exception."); } } }