autofac
Autofac - Resolving IEnumerable Generic Interface at runtime
I found out how to resolve at runtime a generic interface using the below code. How would I resolve ALL instances of IGenericInterface<> to get back collection at runtime. I know in autofac we a[详细]
2023-03-24 19:16 分类:问答using Autofac in Factory method
I am bit confused I have a snippet on domain开发者_JAVA技巧events where ` public class StructureMapDomainEventHandlerFactory : IDomainEventHandlerFactory[详细]
2023-03-24 01:11 分类:问答autofac xml configuration
I\'m using autofac framework with xml configuration. I have a question, here is the situation. I have a class called ApplicationConfig that holds an array of objects thats implements an interface. And[详细]
2023-03-23 23:50 分类:问答Caliburn.Micro. Automatically call eventaggregator.Subscribe() for IHandle implementors with Autofac
In Caliburn.Micro documentation the authors mention such possibility: documentation link IHandle inherits from a marker interface IHandle. This allows the use of casting to determine if an object i[详细]
2023-03-23 23:05 分类:问答How to register a IHttpModule in Orchard which has access to the DefaultContentManager (or the equivalent)
I have been trying to write something for orchard which will check all requests for \"_escaped_fragment_\" signifying a google ajax crawling request and will perform a 301 redirect to the correct reso[详细]
2023-03-23 18:59 分类:问答inherit autofac module in child lifetime scope
I have a module which does property injection for some particular type such as ILog. protected override void AttachToComponentRegistration(IComponentRegistry componentRegistry, IComponentRegistration[详细]
2023-03-23 13:00 分类:问答Filter injection with autofac in MVC3
I have a set of global filters, each derived from IGlobalFilter //knows how to add itself in filter collection[详细]
2023-03-21 23:28 分类:问答Autofac RegisterDecorator Error
I\'m having some problems with the RegisterDecorator method in Autofac. I currently have a nameless implementation of IUserManager, registered like so:[详细]
2023-03-21 14:29 分类:问答Property injection for members of an interface
I can do property injection by using the following code:开发者_如何学JAVA builder.RegisterType<ListViewModel>()[详细]
2023-03-21 06:46 分类:问答How to make Autofac perform property injection in Orchard CMS
Is it possible to do property injection with the OrchardCMS? I know that Orchard uses Autofac and that Autofac does do property injection, but I need to know how to do property injection for the IOr[详细]
2023-03-21 04:10 分类:问答