This question is a result of a post by Jeffery Palermo on how to get around branched code and dependency injection http://jeffreypalermo.com/blog/constructor-over-injection-anti-pattern/
Scenario: In my application (which utilises an rich domain model, where the logic is in the model, not in the services) I have users. I create new users with a service
In a web server project with a rich domain model (application logic is in the model, not in the services) how do you handle injecting the dependencies into the model objects? What are your experiences
I\'m stuck and I\'d appreciate your opinions on the subject. I want to implement INotifyPropertyChanged for my entities. I can\'t figure out which way is the best and why. The only obvious difference
I am currently getting this error: System.Data.SqlClient.SqlException: New transaction is not allowed because there are other threads running in the session.
I\'ve got a factory method inside a parser. Essentially as I load a token I look up the handler for that token, or drop through to the default handler. I\'ve implemented this as a switch and as a Dict
I am using a IoC Container (Castle Windsor) to instantiate c开发者_如何学Classes accordingly to the configuration file. If I want to add classes from a new dll that didn\'t exist when I compiled the p
I\'m pondering the design of a C# library, that will have several different high level functions. Of course, those high-level functions will be implemented using the SOLID class design principles as m
One of the common things I\'ve seen done in applications built on IoC/plugin frameworks is to add commands to menus or toolbars from the dynamically loaded plugins.For example, the application\'s defa
Say I have this class public class MyObject : IObject { public MyObject(IObject2 object2) { } } which I resolve like: