Esempio n. 1
0
 public static void RaiseException <TException>(this ValidationResultCollection resultCollection,
                                                Action <TException, ValidationResultCollection> appendAction = null)
     where TException : CosmosException, new()
 {
     throw resultCollection.ToException(appendAction);
 }
 /// <summary>
 /// Raise exception
 /// </summary>
 /// <param name="resultCollection"></param>
 /// <param name="appendAction"></param>
 /// <exception cref="ValidationException"></exception>
 public static void RaiseException(this ValidationResultCollection resultCollection,
                                   Action <ValidationException, ValidationResultCollection> appendAction = null)
 {
     throw resultCollection.ToException(appendAction);
 }