Exemple #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");
     }
 }
Exemple #2
0
 public static void Validate(Hookdto toValidate)
 {
     Validate(toValidate, new ArrayList());
 }