Esempio n. 1
0
 public void Handle(HotmailHeatData heatData, Logger logger)
 {
     try
     {
         using (var ctx = new HeatHotmailContext())
         {
             ctx.BulkInsert(new[] { heatData });
         }
     }
     catch (DbEntityValidationException e)
     {
         logger.Fatal(e.Dump());
         throw;
     }
     catch (Exception e)
     {
         logger.Fatal(e.Dump());
         throw;
     }
 }
Esempio n. 2
0
 private void ProcessHotmail(HotmailHeatData heatData)
 {
     new HotmailDataHandler().Handle(heatData, _logger);
 }