SHARE
TWEET

Untitled

a guest Jun 27th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [FunctionName("testSample")]
  2.     public static void Run([TimerTrigger("*/5 * * * * *")]TimerInfo myTimer, TraceWriter log)
  3.     {
  4.         OparetionsDB dbContext = new OparetionsDB();
  5.         try
  6.         {
  7.             MatillionAPIRepository matillionData = new MatillionAPIRepository();
  8.             D365Repository d365Data = new D365Repository();
  9.             log.Info($"C# Timer trigger function executed at: {DateTime.Now}");
  10.             //log.Info(matillionData.saveImportedData().ToString());
  11.             //log.Info(d365Data.getD365JobsResults().ToString());
  12.         }
  13.         catch (Exception ex)
  14.         {
  15.  
  16.             dbContext.saveExceptionTime("", ex.GetaAllMessages(), DateTime.Now.ToString("yyyy-MM-dd"));
  17.         }
  18.     }
  19. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top