autofac
Covariance in Autofac?
I am using AutoFAC 2.2.4 and have a question about covariance in container resolution. I have a base interface definition for my repositories:[详细]
2023-03-20 21:17 分类:问答Autofac - None of the constructors found with 'Public binding flags'
I keep on getting an error when trying to resolve my repositories. None of the constructors found with \'Public binding flags\' on typecan be invoked with the available services and parameters:[详细]
2023-03-20 17:32 分类:问答Is it possible to put NHibernate persistent entities to the same lifetimescope of session?
I want to put the persistent entities to the same lifetimescope of the NHibernate session, is it possible?[详细]
2023-03-20 01:22 分类:问答Injecting a registered class using Autofac
I\'m new to Autofac and trying to get things working for my first project using it. I\'m not sure how inject the registered helper from Autofac? Any help would be appreciated.[详细]
2023-03-19 07:57 分类:问答Passing in the type of the declaring class for NLog using Autofac
Following on from this question I would like autofac to inject the type 开发者_开发问答of the declaring object into the constructor of my NLog service, so that it can correctly log which type is loggi[详细]
2023-03-19 01:17 分类:问答Looking to try Autofac with .NET 2.0. What version should I use?
Looking at the deprecated downloads for Autofac out at code.google.com, I see: Release 1.3.2 for .NET 2.0 (released Oct开发者_运维知识库 2008)[详细]
2023-03-18 18:45 分类:问答Autofac and open generics
Is it possi开发者_运维技巧ble to get this scenario to work ? [TestFixture] public class AutofacTests[详细]
2023-03-18 16:31 分类:问答Is there any way to create a fake from a System.Type object in FakeItEasy?
Is there any way to create a fake from a System.Type object in FakeItEasy? Similar to: var instance = A.Fake(type);[详细]
2023-03-18 04:17 分类:问答Creating an Autofac Lifetimescope that will expire with time
I have a bank/collection which caches instances of objects in memory so that each request doesn\'t need to go back to the datastore. I\'d like Autofac to provide an instance of this bank, but then exp[详细]
2023-03-16 22:12 分类:问答loading providers dynamically using Autofac
I\'m using Autofac in my project I have different kind of providers such as data or logging , etc. thease providers are set in the web.config sections and I have a default provider for each section.s[详细]
2023-03-15 03:32 分类:问答