Comments (5)
Dan just pushed its container extensions packages on NuGet with multiple instance registration/resolution feature, witch finally fix this. Please make sur to update to at least v8.0.48
from apizr.
Hi @dorisoy ,
Actually, I noticed that behavior yesterday on my side.
Thank you for reporting it.
I have to fix that thing.
Expect a 1.5.1 nuget update probably tomorrow.
Regards
from apizr.
Ok I investigated.
First I tried to reproduce this bug in the mobile sample with two authenticated api interfaces.
Same config as yours, same error 401 as yours.
Then I tried with the console sample with all the same config but not the same result, as it returned me a success 200 for both api calls...?!!!
I found out that I was using MS DI with the console sample and DryIoc with the mobile one.
And guess what? Replacing DryIoc by MS DI in the mobile sample fixed the problem.
Actually, we're still talking about the same problem wich is #1, wich still comes from #124 on Prism.DryIoc.Extensions
Apizr makes use of AddHttpClient and AddTypedClient service collection official extensions wich register multiple implementation type for a same service type. This is not yet available using Prism.DryIoc.Extensions. That's what I'm talking about on my Readme notes.
Personally, my workaround is to use Prism.Microsoft.DependencyInjection.Extensions instead of Prism.DryIoc.Extensions.
Actually, waiting for this to be fixed and released on Nuget for DryIoc, you'd better download the Prism.Container.Extensions project as I did, fixe the MS DI NavigationService issue like I did in this not yet approved PR (only one line of code), and refrence this MS DI project directly into yours.
You'll get all working as excpected so far.
from apizr.
@JeremyBP
Well, as you said, Thank you for your contribution to this project and I will adopt the solution you suggest。
from apizr.
Dan just pushed its container extensions packages on NuGet with multiple instance registration/resolution feature, witch finally fix this. Please make sur to update to at least v8.0.48
@JeremyBP Thank you for sharing everything for open source !
from apizr.
Related Issues (14)
- [External - Apizr.Integrations.Shiny] Register/Resolve IEnumerable<T> HOT 4
- [v4] NullReferenceException when not providing any connectivity handler
- DistributedCacheHandler throws exception when CacheType = string as it doesn't handle null's properly HOT 3
- Unable to use MediatR and Optional with manual registration of standard api interfaces
- Caching not working properly not respecting CacheKey HOT 3
- Spontaneous Crash on iOS with DelegatingHandler HOT 8
- Multiple CacheKey Attributes On Single Call Doesn't Work As Expected HOT 3
- Android crashes after "set to SDK and user assembly" HOT 2
- Exception when Fusillade priority management is enabled with Prism.Magician HOT 2
- [External - Refit/Fusillade] Cannot access a disposed object. Object name: 'System.Net.Http.HttpConnection+HttpConnectionResponseContent'. HOT 4
- Authentication Handler logs too much HOT 4
- [Shiny] Compatibility issues with Shiny v2.0+ HOT 1
- [question] how to invalidate cache for a specific request? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apizr.