structuremap
StructureMap n-tier apps
I\'m trying to implement StructureMap into my ASP.Net MVC 3 application.My architecture follows n-tier approach where my UI tier talks with my services tier which in turn talks with my business tier w[详细]
2023-03-16 01:26 分类:问答How to resolve the same dependency between a child and parent class with structuremap
I have a couple classes that look like this public class ParentClass { public ParentClass(IChildClass childClass, IDependency dependency)[详细]
2023-03-15 22:42 分类:问答How do I utilize a named instance within the ObjectFactory.Initialize call for StructureMap?
I am trying to do the following bootstrapping: x.For(Of IErrorLogger).Use(Of ErrorLogger.SQLErrorLogger)().[详细]
2023-03-15 13:26 分类:问答Structuremap - multiple interface implementations
I am totally new to Structuremap and am confused on how to wire an interface that has multiple implementations.[详细]
2023-03-15 04:48 分类:问答how to confige an abstract class with structure map
is there any problem with this kinda registration via structure map?? static public class ContainerBootstrapper[详细]
2023-03-15 03:11 分类:问答Injecting the same instance with StructureMap
I have an interface IConnection, implemented by TcpConnection. In addition, two classes accept IConnection as a parameter, and I would like to use the same instance of TcpConnection for that.[详细]
2023-03-14 17:04 分类:问答How to release HybridHttpOrThreadLocalScoped objects in StructureMap?
When performing background tasks in a Windows Service I used HybridHttpOrThreadLocalScoped for storing intances of NHibernate ISessions.[详细]
2023-03-14 14:33 分类:问答How to cast object to generic type?
I have many classes that implements IBuilder<> interface such the ones below UPDATED: each Model1, Model2... inherits from IModel[详细]
2023-03-14 10:35 分类:问答How to achieve dependency injection on ViewModel classes?
I have a view model class which has a method that does a calculation based on the period of time between a date on the viewmodel with the current time using DateTime.Now.[详细]
2023-03-12 05:40 分类:问答question on IoC
I\'ve been relying on IoC pattern for 1 year now using structuremap & asp.net mvc. IoC is really neat especially if you have a lot of dependencies in your class, just inject dependency in your con[详细]
2023-03-12 00:04 分类:问答