i've been implementing a listener that responds to an OnMessageAsync. This works exactly as intended but in the debug feed it continually triggers these exceptions:
Exception thrown: 'System.ServiceModel.FaultException`1' in Microsoft.ServiceBus.dll
Exception thrown: 'System.ServiceModel.FaultException`1' in Microsoft.ServiceBus.dll
Exception thrown: 'System.ServiceModel.FaultException`1' in Microsoft.ServiceBus.dll
Exception thrown: 'System.ServiceModel.FaultException`1' in Microsoft.ServiceBus.dll
Exception thrown: 'System.ServiceModel.FaultException`1' in Microsoft.ServiceBus.dll
Exception thrown: 'System.TimeoutException' in Microsoft.ServiceBus.dll
This set of 6 exceptions seem to trigger every minute. Does anyone know why these trigger or what exactly is causing these exceptions?
code snippet:
OnMessageOptions options = new OnMessageOptions
{
MaxConcurrentCalls = 5,
AutoComplete = false
};
QueueClient client = QueueClient.CreateFromConnectionString(inboundConnectionString, ReceiveMode.PeekLock);
client.OnMessageAsync(async m =>
{
try
{
await ProcessMessageAsync(m);
...
}
...
}, options);
AutoRenewTimeout doesn't seem to make a difference in OnMessageOptions.