120 likes | 206 Views
Composite Application Guidance for WPF. Ivan Pavlovi ć, Hive Studios CSM, Visual C# MVP, MCSD, MCDBA, MCT paki@hive-studios.com http://msforge.net/blogs/paki. Agenda. Who really needs it? Components Interactions Dive, dive…. Who really needs it?. Multiple sources – One UI
E N D
Composite Application Guidance for WPF Ivan Pavlović, Hive Studios CSM, Visual C# MVP,MCSD, MCDBA, MCT paki@hive-studios.com http://msforge.net/blogs/paki
Agenda • Who really needs it? • Components • Interactions • Dive, dive…
Who really needs it? • Multiple sources – One UI • Bank Teller App • Dev, test and deploy modules independently • App developed by multiple teams
Receipt for Composite App • Ingredients • One monolith app or requirement for a new (and large)Desktop / Silverlight App • Development environment (C# Express is OK) • 150g of Module Loader implementation • UnityContainer or Windsor to keep things together • If you want get best taste out of this receipt cook on the mild temp in the beginning and increase temperature later • Server hot with WiX or similar deployment tool
Components Host Application (entry point) Service/Dependancy Injection Container Loader ModuleEnumerator Shell Shell Presenter Module Loader Region Core RegionManager View(s) Presenter Logging EventAggregator Model Commands Modules Module Proffered Services
Communication • Commanding • Event Aggregation • Region Context • Shared Services
SHELL Navigation Region Main Content Window Regions And Views Order 1 Order 2 Order 3 ..... Order Details Item QTY Cost Item QTY Cost Views
EventAggregator Subscriber Publisher IEventAggregator Subscriber CompositePresentationEvent Subscriber CompositePresentationEvent Publisher Subscriber CompositePresentationEvent …