Fluent Interfaces

There are 1 entries for the tag Fluent Interfaces
Castle Windsor: la registrazione dei componenti.

Si sa sono un fun di Castle Windsor e in generale del mondo IoC, una cosa però veramente tediosa, prona ad errori, scomoda e decisamente ingombrante dei framework di Inversion of Control è la gestione del file di configurazione, soprattutto se usate massicciamente i generics. Questo perchè per gestire una situazione, decisamente triviale, come la seguente: public interface IMyComponent<T> where T : IDispatcher { } public interface IDispatcher { void Say( String msg ); } class MyComponent : IMyComponent<IDispatcher> { public MyComponent( IDispatcher dispatcher ) { dispatcher.Say(...

posted @ martedì 4 novembre 2008 11:32 | Feedback (5)