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