structuremap
How to StructureMap configuration?
On AppEngine \"Franch\" and \"English\" as a dependency injection what do I do? class Program { static void Main(string[] args)[详细]
2023-04-01 20:59 分类:问答Unity implementation of the cachedrepository pattern
I am trying to implement the pattern as described here http://stevesmithblog.com/blog/building-a-cachedrepository-via-strategy-pattern/ but using unity (the example uses StructureMap)[详细]
2023-04-01 01:58 分类:问答Strange error on one web server in our production environment: MissingMethod exception, though I don't think a method is missing
We\'re running a web application distributed across load balanced 3 web servers. The exact same code base & configuration is deployed across the 3 servers, and since about 1 hour ago I\'m getting[详细]
2023-03-31 22:03 分类:问答how to use MvcMiniProfiler with MvcTurbine?
I am using MvcTurbine which automatically wires up the IViewEngines from your project and I recently added MvcMiniProfiler and am trying to get it to work the only problem is that the MvcMiniProfiler[详细]
2023-03-30 21:27 分类:问答How to apply transaction isolation level for MVC app with lazy-loading is on?
We have web MVC app where EF\'s DbContext (POCO) derived class is managed by StructureMap and set up as http-scoped life-cycle. How can we set up specific isolation level for our repository (for insta[详细]
2023-03-30 06:30 分类:问答Using structure map with MSTest
I have created myself a test project with a single test in it. Within the \"TestInitialize\" method I\'m trying to call my StructureMap setup method where I set which concrete instances should be used[详细]
2023-03-29 12:16 分类:问答Injecting a DbContext into a FluentValidation validator
I am using the FluentValidation library to enforce a unique constraint on one of my models: public class Foo {[详细]
2023-03-29 07:43 分类:问答MVC3 / Structure Map 2.6.2 DI custom controller factory problem
I\'m having problems with passing non-parameterless classes as models to a view in a controller. I recently moved from Structure Map 2.5.3 to 2.6.2. E开发者_JAVA百科verything worked fine in 2.5.3 nad[详细]
2023-03-28 23:30 分类:问答Structure Map 2.6.2 scoping
I\'m moving my application from Structure Map 2.5.3 to 2.6.2 and I\'m having some scoping problems. In 2.5.3 version I used CacheBy(InstanceScope.HttpContext) to have instances disposed at the end of[详细]
2023-03-28 05:09 分类:问答StructureMap configuration help
I have an interface, called IRepository, with two implementations: SqlRepository SqlDualWriterRepository[详细]
2023-03-27 07:37 分类:问答