Respawnsive / Apizr

Refit based web api client management, but resilient (retry, connectivity, cache, auth, log, priority, etc...)
https://www.apizr.net
Apache License 2.0
140 stars 12 forks source link

Exception when Fusillade priority management is enabled with Prism.Magician #5

Closed JeremyBP closed 3 years ago

JeremyBP commented 3 years ago

Exception: Apizr may throw this exception when using Prism.Magician with Fusillade priority management activated: The 'InnerHandler' property must be null. 'DelegatingHandler' instances provided to 'HttpMessageHandlerBuilder' must not be reused or cached. Handler: 'Microsoft.Extensions.Http.Logging.LoggingHttpMessageHandler'

Workaround Turn it off with the WebApi attribute while waiting for a fix or if you do need/want to play with it, change from Prism.Magician to the Prism.Container.Extensions approach.

Actually, I'm thinking about outsourcing Fusillade and Polly from Apizr core package to Apizr.Integrations packages to get something fully modular.

JeremyBP commented 3 years ago

Currently outsourcing Fusillade from the core package to a dedicated Apizr.Integrations.Fusillade package. Thinking about Polly to. This will be part of Apizr v3.0 with some new features, fixes, updates and based on next Refit v6. It will published as beta on pre-release channel as long as Refit v6 is in beta mode to. Will update the changelog when ready with some breaking changes (yes there are some).

JeremyBP commented 3 years ago

v3.0 just released