예제 #1
0
 private static void SaveResultToDatabase(EmailMessage message)
 {
     using (var ctx = new DbMailRepository())
     {
         ctx.SaveMessage(message);
     }
 }
예제 #2
0
 private void GetReceivedUids(EmailData account)
 {
     using (var ctx = new DbMailRepository())
     {
         _receivedMessagesUids = ctx.GetReceivedUidsOnDate(account.InquireDate, account.Email) ?? new List <string>();
     }
 }
예제 #3
0
 static void Main(string[] args)
 {
     var mailrepo = new DbMailRepository();
     var all      = mailrepo.GetNotCheckedEmailsAsync().Result;
 }