Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

dns - Consuming external webservices in domain driven design -


i want consume external third party web services in domain driven design project, not able understand in layer should access external web services. in domain services don't think , because domain services domain objects only. requirements that, have perform list of operation based on input external webservice , have perform task in domain service. confused.

what do, introduce interface required service in terms of domain model in domain project. every time class in domain needs service, pass reference implementation of interface.

then create "connector implementation" implements interface , connects webservice required use. when start application, provide domain classes implementation, instance using dependency injection framework.

this connector has reference domain model , web service definition. domain model has no reference connector implementation or webservice - knows of interface defined in domain project. called inversion of control.

this way, domain classes know nothing web service, interface defined in domain model. domain logic stays separated 'evil' outside world.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -