Beispiel #1
0
 public void Handle(AfcHotmailHeatData 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;
     }
 }
Beispiel #2
0
 private void ProcessAfc(AfcHotmailHeatData heatData)
 {
     new AfcDataHandler().Handle(heatData, _logger);
 }