structuremap
Telling StructureMap to use another Constructor
I have a c开发者_JS百科lass with 2 constructors. MyClass() and MyClass(IMyService service) How do I tell StructureMap then whenever I do a \'new MyClass()\' it should actually call the second cons[详细]
2023-03-26 19:44 分类:问答Integrating StructureMap and Entity Framework
I have public interface IRepository<T> where T : EntityBase { } and its implementation, EfRepository is like[详细]
2023-03-26 05:49 分类:问答Using StructureMap to inject two different componant at runtime at the same time
i have this class to use to get instances of objects from different DLL depending on a string which have the name of dlls.[详细]
2023-03-25 18:18 分类:问答Structuremap constructor overloading
I have a command class that needs to have 2 constructors. However, using structuremap it seems that I can only specify one constructor to[详细]
2023-03-25 07:54 分类:问答Unable to call BuildUp from a private or internal constructor with StructureMap
In one of my classes I have an internal constructor which is being used for unit testing, and a private constructor that my application calls. The internal has parameters for my dependencies while the[详细]
2023-03-23 16:23 分类:问答Using StructureMap, is one of these project organizations better than another?
I\'m starting to work with StructureMap on a windows application project.In working on learning the basics, I found 2 ways to arrange my solution that accomplish the same goal, and I\'m wondering if a[详细]
2023-03-23 15:53 分类:问答Register open generic types for all types implementing some interface with StructureMap
I want to register all my types implementing IManager so that they can be used as the type T for the generic Lazy<T> class.[详细]
2023-03-22 13:02 分类:问答Does Structuremap support Lazy out of the box?
Does structuremap allow you to d开发者_StackOverflowo constructor injection in a lazy fashion? Meaning not creating the object which is injected until it is used?UPDATE: StructureMap v3 implements th[详细]
2023-03-22 11:13 分类:问答structuremap does return named instance instead of default one
As the title says, structuremap does not return the default instance when i have also configured named instances.[详细]
2023-03-22 08:45 分类:问答Setting up structure map in a c# console application
I\'m getting this error: StructureMap Exception Code:202 No Default Instance defined for PluginFamily My setup looks like:[详细]
2023-03-22 04:16 分类:问答