Comments (11)
I was able to resolve this by moving the INotification marker interface to a base class.
thanks for your help!
from dryioc.
Hi,
Could you create a complete test in DryIoc.IssueTests project?
from dryioc.
OK but do you agree this is a bug? Sorry not trying to be rude I just need to figure out if I need to swap DI containers if it is until a fix is made.
from dryioc.
I don't understand this fully. If I see, play with complete sample / test, it will speedup things.
I doubt that the problem is in DryIoc, cause we talk about basic feature. But again, hard to be sure until I see a full example.
from dryioc.
Ohh, what version of DryIoc do you use?
Now I have remembered that "maybe" related issue was fixed in v3.1 (now in preview). Try it out if you are using a lesser version.
from dryioc.
Ohh, what version of DryIoc do you use?
Now I have remembered that "maybe" related issue was fixed in v3.1 (now in preview). Try it out if you are using a lesser version.
The preview version did not resolve the issue.
from dryioc.
i had to go out of town unexpected for the weekend. is this something you would have time to investigate? it's literally as simple as the code sample i show.
any help would be great!
from dryioc.
Hopefully, will have time to check.
from dryioc.
Hi @mpaul31,
I have added the tests to demonstrate that it cannot be "simply" achievable. So it is not a DryIoc fault, nor the MediatR's. I tried the case without containers and MediatR with the same results.
First, you need to figure out how you would do it by hand, then we think how to automate it with libs.
from dryioc.
from dryioc.
In order to support such a notification we should construct something like this:
Func<N, Task> Handler =
async n => await Task.WhenAll(new[] {
((INHandler<N>)new NHandler()).Handle(n),
((INHandler<K>)new NHandler()).Handle(n)
});
class K {}
class N : K {}
class NHandler : IHandler<N>, IHandler<K> {}
from dryioc.
Related Issues (20)
- Consistent behavior of a faulty singleton HOT 2
- FactoryType is not forwarded in the RegisterMapping<TService, TRegisteredService> method HOT 1
- IDisposable dependencies does not get disposed when web request ends HOT 5
- Add the HotUsedInstance for fast access to skip all the resolution steps
- Conditional registrations
- MS DI AddKeyed... variant registration fails HOT 8
- Check for mismatch lifestyle scope between service and dependencies HOT 7
- troubleshooting sudden ArgumentException at TryInterpretSingletonAndUnwrapContainerException HOT 3
- [question/feature request] keyed services in delegate resolution HOT 8
- Use default constructor if no registration is found
- Add the global test option to run all tests with WithoutUseInterpretation option
- Feature Request: add global .WithDefaultServiceTypeCondition(Func<Type, bool> condition) method HOT 1
- System.NullReferenceException: Object reference not set to an instance of an object HOT 5
- 'WithConcreteTypeDynamicRegistrations' results in unintended instantiation HOT 3
- Exception: Window already exists HOT 4
- Resolve enforces passed arguments to be used (and fails because of it) HOT 4
- Type registered with Singleton instantiating multiple times
- [BUG] Resolve<> crashes with the misleading, casting-related Exception when class is also registered using RegisterInitializer HOT 5
- Virus Warning with DryIoc Version 5.4.3 on Some Antivirus Software HOT 1
- Resolving func-wrapper when having circular-dependency throws RecursiveDependencyDetected HOT 1
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 dryioc.