C# consumer flow dispose

Hi Shaun,

Yes that is acceptable. A ‘Flow’ represents the connection between your application and an endpoint on the broker, typically a queue. A session represents the connection between your application and the broker itself. Typically most applications have one session, and one flow for the duration of the application.
However it possible to conceive other scenarios where an application may need to connect to 2 or more queues, in which case there might be multiple flows in the session. Or applications sharing a queue where you may want to open/dispose a flow many times. Although in the latter case you’d almost always be far better using a non-exclusive queue and just keep the flow open.
And as you already know, you may want to dispose/re-open a flow to force redelivery of unacknowledged messages.
Regards,
Ragnar