Tagged Questions
1
vote
0answers
69 views
Are there side-effects to having a generic Ninject factory?
Consider this class:
using Ninject;
using Ninject.Syntax;
using Ninject.Parameters;
namespace MyApp.Dependencies.Factories
{
public abstract class FactoryBase<T> where T : class
{
...
2
votes
0answers
54 views
Send message with SignalR to client(s) from injected (IoC) method
I am new with SignalR and still a newbie with IoC Container SimpleInjector and I am wondering if there are any side effects and/or if I'm save with my chosen approach.
In my web app I have a SetupHub ...
3
votes
0answers
232 views
Is this the right way to inject AutoMapper profiles
I'd like to know if I'm doing profile configuration in the wrong place or in the wrong way.
I'm following the Onion Architecture. So that restricts the direction of my dependencies towards the ...
5
votes
0answers
173 views
Doubts about the quality of an API designed for use with minimal effort
This is going to be long, and I do hope it is going to make some kind of sense; I apologize if it doesn't. I'll try to provide exactly the amount of context that is necessary to understand the ...
0
votes
0answers
45 views
Data Access Objects and Entity Relationships
What is the proper way to structure DTO's for my tables?
Three of my tables are Documents which contains Pages and Fontstyles. I am creating an EditDocument view in which I will edit these (and more) ...
2
votes
1answer
407 views
Inject dependency into PostSharp aspect
I have designed couple of aspects using PostSharp for different projects, but there is a design flaw in many of them: dependency management.
This is a question about injection of dependencies into ...
2
votes
2answers
166 views
Illustrating DI and IoC concepts : Simple code requesting review
I have written a little bit of code which illustrates DI(dependency injection) and IoC(Inversion of control) container. The point of this exercise is to illustrate the two methods by which you can ...
4
votes
1answer
919 views
Can someone review my AutoFac, NHibernate & ASP.NET Web API integration?
I've recently been learning (and struggling with) integrating AutoFac, NHibernate & ASP.NET Web API. I have found several tutorials with code that did not work as anticipated but managed to ...