Esempio n. 1
0
 /// <summary>
 /// Runs message processor
 /// </summary>
 /// <param name="watcher">Queue watcher</param>
 /// <param name="handler">Notification handler</param>
 /// <returns>async task</returns>
 public static async Task Run(QueueWatcher watcher, NotificationHandler handler)
 {
     // Only process one single item, then conclude
     await watcher.ProcessNext(handler.Process);
 }