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()));
            }
        }
Exemplo n.º 2
0
        //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()));
            }
        }