static void Main() { QueueProcessor.Watch <StripeWebhook>(CancellationTokenSource.Token, HasMessagesCallback, NoMessagesCallback); while (!CancellationTokenSource.IsCancellationRequested) { Thread.Sleep(1000 * 60); } }