Пример #1
0
 public ReportMailer(MailDestination[] destinations)
 {
     this.destinations = destinations;
     if (destinations.Length == 0)
     {
         throw new Exception("dests required");
     }
     foreach (var destination in destinations)
     {
         if (MailDestination.RetrieveEndpoint(destination) == null)
         {
             throw new Exception("invalid endpoint");
         }
     }
 }
Пример #2
0
 private static Endpoint CreateEndpoint(MailDestination mailDestination)
 {
     throw new Exception("unable to connect to LDAP server");
 }
Пример #3
0
 public static Endpoint RetrieveEndpoint(MailDestination origin)
 {
     return(CreateEndpoint(origin));
 }