使用Azure ServiceBus时,异常回调是否捕获或重新抛出错误?

时间:2018-09-26 09:34:41

标签: c# azure azureservicebus azure-eventhub

我有一个大致像这样的设置

<video src="http://www.w3schools.com/html/mov_bbb.mp4" id="video" autoplay muted playsinline></video>
<p>(each video is just ~ 10 seconds)</p>

我看到了一堆var options = new EventProcessorOptions(); options.ExceptionReceived += (a, b) => Console.WriteLine("err"); var eventProcessorHost = new EventProcessorHost(...) await eventProcessorHost.RegisterEventProcessorFactoryAsync(new EventProcessorFactory("foo"), options); ,并且我想确保它们不会卡在异常回调中。我通过使用LeaseLostException功能查看错误来干扰错误流吗?

0 个答案:

没有答案