You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Based upon my research and the results of this stackoverflow question, it does not appear to be possible to use the factory pattern with Microsoft's built in dependency injection pattern. I need to support something like this:
services.AddWithFactory(
new Type[] { Foo, Bar },
typeof(IRepository<>),
typeof(IRepositoryFactory<>),
ServiceLifetime.Singleton
);
The text was updated successfully, but these errors were encountered:
Based upon my research and the results of this stackoverflow question, it does not appear to be possible to use the factory pattern with Microsoft's built in dependency injection pattern. I need to support something like this:
The text was updated successfully, but these errors were encountered: