Questions tagged [funq]

For issues relating to the Funq Dependency Injection framework.

Funq is lightweight Dependency Injection container optimised for good performance and memory usage.

It's widely used as ServiceStack's Inversion Of Control container.

64 questions
0
votes
1 answer

ServiceStack - IOC Disposal

I'm using ServiceStack's funq, I'm trying to get a hold on the place where the IOC gets disposed at the end of a request. Particularly for the entries with scope = ReuseScope.Request. I'm looking at RestHandler's ProcessRequest method, which is the…
Cristóvão
  • 255
  • 1
  • 2
  • 11
0
votes
2 answers

How to inject HttpRequestBase and HttpContextBase in Funq (while using ServiceStack)

I have been happily using AutoFaq for a couple of years and take advantage of its ability to easily inject HttpRequestBase and HttpContextBase in the MVC pipeline. This makes mocking and decoupling a lot easier. I am in the process of changing my…
t316
  • 1,149
  • 1
  • 15
  • 28
0
votes
1 answer

How do you inject with parameters using AutoFac?

I'm trying to figure out the syntax to inject OrmLiteConnectionFactory using AutoFac. This is a working example using Funq, another DI framework. container.Register(c =>…
Shane
  • 4,185
  • 8
  • 47
  • 64
0
votes
1 answer

Instance of Container used in Funq

I am waching the screencast of Funq but I don't understand something with the following lambda in the testing code : var container = new Container(); container.Register(c => new Bar()); the declaration : public void…
Diego Wong
  • 35
  • 1
  • 7
1 2 3 4
5