I have an Azure Function triggered by Service Bus (standard plan). Most of the time it works OK, but when I do a load test with around 100 messages to a topic. the exception is thrown as below,
Actual Behavior
Some processes have been stopped immediately, while some processes are still done.
Expected Behavior
All processes should be done or move to DLQ if it's failed
Here is a detailed exception logs:
problemId:
DryIoc.ContainerException at DryIoc.Throw.It
outerMessage:
The host is disposed and cannot be used. Disposed object: 'Microsoft.Azure.WebJobs.Script.WebHost.DependencyInjection.ScopedResolver'; Found IListener in stack trace: 'Microsoft.Azure.WebJobs.ServiceBus.Listeners.ServiceBusListener, Microsoft.Azure.WebJobs.ServiceBus, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
innermostMessage:
Container is disposed and should not be used: Container is disposed. You may include Dispose stack-trace into the message via: container.With(rules => rules.WithCaptureContainerDisposeStackTrace())
I have an Azure Function triggered by Service Bus (standard plan). Most of the time it works OK, but when I do a load test with around 100 messages to a topic. the exception is thrown as below,
Actual Behavior
Expected Behavior
Here is a detailed exception logs:
DryIoc.ContainerException at DryIoc.Throw.It
The host is disposed and cannot be used. Disposed object: 'Microsoft.Azure.WebJobs.Script.WebHost.DependencyInjection.ScopedResolver'; Found IListener in stack trace: 'Microsoft.Azure.WebJobs.ServiceBus.Listeners.ServiceBusListener, Microsoft.Azure.WebJobs.ServiceBus, Version=3.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
Container is disposed and should not be used: Container is disposed. You may include Dispose stack-trace into the message via: container.With(rules => rules.WithCaptureContainerDisposeStackTrace())