Upload
brock-kendell
View
232
Download
2
Tags:
Embed Size (px)
Citation preview
© Hive Studios 2009
Composite Application Guidance for WPF
Ivan Pavlović, Hive Studios
CSM, Visual C# MVP, MCSD, MCDBA, MCT
http://msforge.net/blogs/paki
© Hive Studios 2009
3
Who really needs it?
Multiple sources – One UIBank Teller App
Dev, test and deploy modules independently
App developed by multiple teams
© Hive Studios 2009
4
Receipt for Composite App
IngredientsOne 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
© Hive Studios 2009
5
Components
Shell PresenterRegion
View(s)Presente
r
Model
Serv
ice /
Dependancy
In
ject
ion
Conta
iner
Shell
Host Application (entry point)
ModuleEnumerator
Module Loader
RegionManager
Logging
EventAggregator
Loader
Core
Modules Module Proffered Services
Commands
© Hive Studios 2009
7
DemoBoot Process
Configure Container
Configure Region Mappings
Load Modules
Create Shell
Initialize Modules
© Hive Studios 2009
9
DemoRegions And Views
Order 1Order 2Order 3
.....Item QTY Cost
NavigationRegion
Main Content Window
Order Details
SHELL
Item QTY Cost
Views
© Hive Studios 2009
10
Demo
EventAggregator
Publisher
PublisherSubscriber
Subscriber
Subscriber
Subscriber
IEventAggregator
CompositePresentationEvent
CompositePresentationEvent
CompositePresentationEvent
…