public void FireOperatingEvent(ObjectType objectType = ObjectType.ConfiguredCodeInvocation) { var args = new OperationArgs { Operator = Repository.CurrentUser.Id, Operation = TableOperation.Invoke, ObjectType = objectType, Target = CodeItem.name, Data = CommandParam }; OperationHandler.OnOperating(args); }
public static void OnOperating(OperationArgs args) { if (Operating != null) { try { Operating(args); } catch (Exception ex) { throw new OperationException("Handling Repository Operating event failed.", ex); } } }