Service Bus Configured with AutoPurgeOnStartup Can't Configure Topics With Sessions Enabled
Describe the bug Wolverine throws errors during listener initialization if AutoPurgeOnStartup is set and a listener is configured on a topic that enables sessions. It looks like the PurgeAsync method in https://github.com/JasperFx/wolverine/blob/295ea29e83f23e80b0c3dcfad56dcc3f46e649f5/src/Transports/Azure/Wolverine.AzureServiceBus/Internal/AzureServiceBusSubscription.cs#L121 is calling ServiceBusClient.CreateReceiver instead of AcceptNextSessionAsync causing it to fail.
To Reproduce Steps to reproduce the behavior:
- Configure with AzureServiceBusConfiguration.AutoPurgeOnStartup()
- Create a Service Bus Sender and Listener that connected to a Topic with Sessions enabled.
- Start
- See error
@zjohnson-messagedigital Got it, and do remember you have a private Discord room for JasperFx support too! I'll aim to have this out soon. Read your company wrong the first time:/
Thanks @jeremydmiller, this was just a behavior I came across and isn't blocking me at this time. Figured I'd post it here in case anybody else came across it.