Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public static void OnOperating(OperationArgs args)
 {
     if (Operating != null)
     {
         try
         {
             Operating(args);
         }
         catch (Exception ex)
         {
             throw new OperationException("Handling Repository Operating event failed.", ex);
         }
     }
 }