public void Run(DatabaseContext context, Logging log, string settings) { NotificationProcessor proc = new NotificationProcessor(context, JsonConvert.DeserializeObject <NotificationProcessorSettings>(settings), log); int Processed = proc.ProcessQueue(); if (Processed > 0) { log.LogMessage(string.Format("NotificationProcessor: Processed {0} notifications\r\n", Processed.ToString())); } }
//test public void Run(string settings) { NotificationProcessor proc = new NotificationProcessor(_repository, JsonConvert.DeserializeObject <NotificationProcessorSettings>(settings)); int Processed = proc.ProcessQueue(); if (Processed > 0) { Logging.LogMessage(string.Format("NotificationProcessor: Processed {0} notifications\r\n", Processed.ToString())); } }