structuremap
NullReferenceException using AutoMapper and StructureMap
So, I get a NullReferenceException thrown on a production server. It\'s not reproducible and happens once every ~100 request.[详细]
2023-04-10 19:21 分类:问答Testing method that uses dependency injection (structuremap)
I have got a factory method that create new instances of a certain interface. I am using StructureMap to create 开发者_高级运维new instances of the interface.[详细]
2023-04-10 17:46 分类:问答StructureMap with Windows Forms
I\'m used to work with StructureMap with Web Apps... but now, I\'m working on a Windows Forms project and I\'d like to use it, but I don\'t how to configure it.[详细]
2023-04-10 15:55 分类:问答Fluentvalidation inject business object to validator
I am using fluentvalidatio开发者_如何学Pythonn and use structuremap to inject validators for actions in asp.net mvc3. I have problems to inject my business objects to validator objects. I get an error[详细]
2023-04-09 23:24 分类:问答is it ok to use StructureMap like this? asp.net MVC 3
i have a doubt that i am not using the best practice for using Structure-Map. all working fine but just a confusion in mind.[详细]
2023-04-09 21:56 分类:问答Getting "Error Code 207" only after deploying WCF services
I have created a set of WCF services that use StructureMap by following this tutorial. Everything has been working as expected, but it appears that now that I have deployed it to the server, it fails[详细]
2023-04-08 04:50 分类:问答StructureMap - Ability to replace an assembly at runtime
Example: Console application: class Program { static void Main(string[] args) { var calculator = ObjectFactory.GetInstance<ICalculator>();[详细]
2023-04-06 07:39 分类:问答Structuremap, odd behavior when using default instance and named instance Options
Is anybody able to explain the following behavior? Especially why TestInitializeAndConfigure_Fails failes when TestUseAndAdd does not ... and why TestUse_Fails failes when TestUseOrderChanged does n[详细]
2023-04-06 05:27 分类:问答Injecting a instance of a class to a constructor
Is this the bes开发者_Python百科t practice for injecting a class dependency into a repository?Bear in mind that other repositories will need this PetaPoco.Database instance as I want each repository t[详细]
2023-04-05 20:19 分类:问答StructureMap, configure using container or objectfactory?
I did my configuration like this: var container = new Container(x => { x.For<IEngine>().Use<V6Engine>();[详细]
2023-04-05 07:42 分类:问答