예제 #1
0
 internal static void Validate(Hookdto toValidate, IList validated)
 {
     if (validated.Contains(toValidate))
     {
         return;
     }
     validated.Add(toValidate);
     if (toValidate.HookFunction == null)
     {
         throw new ArgumentException("HookFunction is required");
     }
     if (toValidate.Script == null)
     {
         throw new ArgumentException("Script is required");
     }
 }
예제 #2
0
 public static void Validate(Hookdto toValidate)
 {
     Validate(toValidate, new ArrayList());
 }