structuremap
How do you output the context class using log4net as a service?
I am using Log4Net as a service which is injected into other services using StructureMap. How do I ensure the log file includes the calling service class context (class name and/or thread) which is m[详细]
2023-03-05 01:29 分类:问答StructureMap 2.6.1, an IRepository<T> and a EFRepository<T,TContext>
So I thought I\'d be slick and try this.I need to pass around a context without newing it up every time AND be able to define the mappings (Entity framework) -- in order to do this I need to inherit t[详细]
2023-03-04 07:09 分类:问答MVC3 & StructureMap, injecting concrete class based on the controller
Say several of my controllers constructors take an interface - IPetInterface There are 3 concrete implementations of IPetInterface.[详细]
2023-03-01 13:17 分类:问答StructureMap constructor parameter scope
I\'ve been searching all day and can\'t figure this out. I hope it hasn\'t been asked before. ObjectFactory.Initialize([详细]
2023-02-27 05:46 分类:问答How do you set up StructureMap to use a Singleton with the Use<>.For<> syntax
I am using StructureMap with MVC3 I want to set it up to use a few of the objects as Singletons or to give them a Per Request life.All of the examples I see out there are for an older syntax of Struct[详细]
2023-02-27 05:15 分类:问答Converting Some Code From Ninject To StructureMap
I\'m trying to use Steven\'s solution for Service Layer validation which is outlined in his reply to some question StackOverflow( Validation: How to inject A Model State wrapper with Ninject?). Unfort[详细]
2023-02-27 04:41 分类:问答StructureMap Constructor arguments
I\'m new to structureMap.How do I define constructor arguments for the following class with fluent configuration?Thanks[详细]
2023-02-27 04:24 分类:问答Using StructureMap with derived interfaces
I have an object hierarchy similar to the following: interface IVideoStream { } abstract class VideoStream : IVideoStream { }[详细]
2023-02-27 01:59 分类:问答StructureMap Exception Code: 205 while trying to put an AppSettings value in constructor
I\'m having trouble adding a value to my ImageService constructor. My IUserRepository works, but when I try to put \"absoluteImagePath\" into the constructor (Bootstrapper) I get the following error:[详细]
2023-02-26 10:15 分类:问答How to get same instance within a page request using structure map in asp.net?
I want to get sam开发者_JAVA百科e instance within a page request/ Can I use HybridHttpOrThreadLocalScoped() method for this?[详细]
2023-02-26 02:38 分类:问答