Is it possible to create IFactoriy<T>, IFactoriy<T1, T> automatically? #196
Unanswered
ivmazurenko
asked this question in
Q&A
Replies: 1 comment 3 replies
-
You can write a generic factory method: [Factory] IFactory<T> CreateFactory<T>(){
} |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I have autofac-like container in my project. There is a lot of code (and tests) presented that depends on IFactories like following:
So, I am expecting to use Stronginject same way. This is obfuscated example, where I use a lot of factories:
As I see, IFactory in StrongInject required to be implemented manually. But in my case it works automatically.
I do not want to rewrite all of these code. I just want replace my container with Stronginject in order to check its performance.
How can I adapt Stronginject container to my code?
Beta Was this translation helpful? Give feedback.
All reactions