Click here to Skip to main content
15,893,337 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Crystol report error in google chrome Pin
thatraja3-Mar-11 14:42
professionalthatraja3-Mar-11 14:42 
QuestionAjaxControlToolkit ModalPopupExtender in code behind [modified] Pin
Robert Espindola27-Feb-11 13:05
Robert Espindola27-Feb-11 13:05 
AnswerRe: AjaxControlToolkit ModalPopupExtender in code behind Pin
Not Active27-Feb-11 15:00
mentorNot Active27-Feb-11 15:00 
GeneralRe: AjaxControlToolkit ModalPopupExtender in code behind Pin
Robert Espindola27-Feb-11 16:46
Robert Espindola27-Feb-11 16:46 
GeneralRe: AjaxControlToolkit ModalPopupExtender in code behind Pin
Not Active27-Feb-11 17:11
mentorNot Active27-Feb-11 17:11 
AnswerRe: AjaxControlToolkit ModalPopupExtender in code behind Pin
Vimalsoft(Pty) Ltd28-Feb-11 22:37
professionalVimalsoft(Pty) Ltd28-Feb-11 22:37 
QuestionA proper DI implementation? Pin
Member 391904927-Feb-11 8:59
Member 391904927-Feb-11 8:59 
AnswerRe: A proper DI implementation? Pin
James Simpson28-Feb-11 3:57
James Simpson28-Feb-11 3:57 
The DI framework is usually a component of the application layer (in my experience) e.g If you had an ASP.NET MVC App and you were using structure map, its your front end application that would reference structure map, the rest of your code below that stack does not need to know about the DI container becuase its dependencies would be resovled by the main application (E.g MVC)

Then the rest of your dependencies etc.. you could seperate the interfaces from the concrete classes, but I would only do that when its required. You could start with a simple MyCompany.MyDivision.Framework.Logging project that contains the ILogger and the SpecialLogger.

Becuase the DI container is just references in the top of the stack (e.g the MVC app) it already has references to the components below it, so no circular reference is created.

If you find yourself reference the DI container lower down the stack then you may run into problems, there are usually more specific services you can implement for resolving things the DI container could provide.

e.g Lets Say you had the Logging assebly, a Domain Layer assembly, and a front end project, and the requirements where for the front end project to have references to the domain layer and logger, but you dont want interdependencies between the two:

Then lets imagine you had a bunch of repositories that needed resolving in your domain data access layer, that could be a IRepositoryRegistry interface, but it could be implemented in the app up the stack to look at the DI container to return a repository. There would be no need for your logging assembly to ever use IRepositoryRegistry, so you don't end up with dependencies between those sort of assemblies.


James
James Simpson
Web Solutions Developer
www.methodworx.com

GeneralRe: A proper DI implementation? Pin
Member 391904928-Feb-11 19:21
Member 391904928-Feb-11 19:21 
GeneralRe: A proper DI implementation? Pin
Member 391904928-Feb-11 20:01
Member 391904928-Feb-11 20:01 
GeneralRe: A proper DI implementation? Pin
James Simpson28-Feb-11 22:55
James Simpson28-Feb-11 22:55 
GeneralRe: A proper DI implementation? Pin
Member 39190491-Mar-11 8:44
Member 39190491-Mar-11 8:44 
GeneralRe: A proper DI implementation? Pin
Member 39190491-Mar-11 9:07
Member 39190491-Mar-11 9:07 
GeneralRe: A proper DI implementation? Pin
James Simpson1-Mar-11 10:02
James Simpson1-Mar-11 10:02 
AnswerRe: A proper DI implementation? Pin
Spectre_0013-Mar-11 2:03
Spectre_0013-Mar-11 2:03 
Questionpayment processor - your experience Pin
Jassim Rahma26-Feb-11 20:55
Jassim Rahma26-Feb-11 20:55 
AnswerRe: payment processor - your experience Pin
Abhijit Jana26-Feb-11 22:18
professionalAbhijit Jana26-Feb-11 22:18 
GeneralRe: payment processor - your experience Pin
Jassim Rahma3-Mar-11 1:12
Jassim Rahma3-Mar-11 1:12 
AnswerRe: payment processor - your experience Pin
N a v a n e e t h27-Feb-11 2:56
N a v a n e e t h27-Feb-11 2:56 
GeneralRe: payment processor - your experience Pin
Vimalsoft(Pty) Ltd28-Feb-11 22:38
professionalVimalsoft(Pty) Ltd28-Feb-11 22:38 
QuestionHow to save Session Data using Oracle? Pin
Member 297299226-Feb-11 8:55
Member 297299226-Feb-11 8:55 
AnswerRe: How to save Session Data using Oracle? Pin
Abhijit Jana26-Feb-11 22:22
professionalAbhijit Jana26-Feb-11 22:22 
QuestionWindows service failing to get the data from Database Pin
indian14325-Feb-11 12:21
indian14325-Feb-11 12:21 
AnswerRe: Windows service failing to get the data from Database Pin
N a v a n e e t h26-Feb-11 14:35
N a v a n e e t h26-Feb-11 14:35 
AnswerRe: Windows service failing to get the data from Database Pin
coolestCoder28-Feb-11 2:08
coolestCoder28-Feb-11 2:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.