Tagged Questions
1
vote
0answers
44 views
COM Interop & DI : Where to bind?
Recently I have "discovered" the virtues of dependency injection and I absolutely love the way it has affected my code - all the pieces are simple, focused and decoupled; I can now mock all the ...
1
vote
0answers
34 views
Autofac dependency injection implementation
I started working on a new project and I come from a direct and 'naive' programming.
Right now I'm concerning about using IoC container, specifically on Dependency Injection patter using Autofac.
...
0
votes
0answers
191 views
ASP.NET Mvc3 - application/request lifetime and dependency injection
I thought of asking on SO, but it seems this is more of a "concept" type question than a "problem" type question. If it needs to be moved, please do so.
Anyway, I'm having a tough time finding ...
8
votes
2answers
909 views
What is constructor injection?
I have been looking at the terms constructor injection and dependency injection while going through articles on (Service locator) design patterns.
When I googled about constructor injection, I got ...
4
votes
2answers
302 views
DI and hypothetical readonly setters in C#
Sometimes I would like to declare a property like this:
public string Name { get; readonly set; }
I am wondering if anyone sees a reason why such a syntax shouldn't exist. I believe that because it ...
6
votes
2answers
3k views
Dependency injection with n-tier Entity Framework solution
I am currently designing an n-tier solution which is using Entity Framework 5 (.net 4) as its data access strategy, but am concerned about how to incorporate dependency injection to make it testable / ...
7
votes
3answers
795 views
Interception vs Injection: a framework architecture decision
There's this framework that I'm helping to design. There are some common tasks that should be done using some common components : Logging, Caching and raising events in particular.
I am not sure if ...
1
vote
3answers
264 views
How I can hide dependencies from my Services?
Here's a service abstraction that I am working on :
public abstract class Service
{
public ILogger Logger{get;set;}
public IQueryManager QueryManager{get;set;}
public ICommandManager ...
-3
votes
1answer
641 views
What are Dependency Injections and why are they useful?
I have heard of ninject and I have to build a lot of apps that have to integrate with other tools.
SO i was wondering what this was and how it is used.
11
votes
1answer
1k views
Domain-Driven-Design - external dependencies in the Entity problem
I'd like to start Domain-Driven-Design, but there are several problems I'd like to solve before starting :)
Let's imagine I have a Groups and Users and when user wants to join a group, I'm calling ...
6
votes
4answers
2k views
Use Dependency Injection For Data Objects?
I'm just learning about dependency injection, and am stuck on something. Dependency Injection recommends sending dependent classes through the constructor, but I'm wondering if this is necessary for ...