MassTransit / MassTransit

Distributed Application Framework for .NET
https://masstransit.io
Apache License 2.0
6.98k stars 1.62k forks source link

Expose `ConnectionPolicyChain` on `ConnectionHandler` #83

Closed haf closed 12 years ago

haf commented 12 years ago

I'd like to push a few policies in there myself to handle ServerTooBusyException, from my transport, but the field is not exposed.

phatboyg commented 12 years ago

Any chance you could mock up some code of how you would hook into it?

haf commented 12 years ago

I'll mock something up. Working on the async-issue right now. In the meanwhile, here's how I've hacked it (and it's async, also, so that ties into GH-82) right now.

haf commented 12 years ago

In this case, I think we should redo the publishing to be async and use the retry-logic I wrote in F# and bytenik improved to be extendable by giving it a nice C#-friendly API, here: https://github.com/MassTransit/MassTransit-AzureServiceBus/blob/master/src/MassTransit.Async/Retries.fs