My company is looking into ASP.NET and Prism. We are wondering how much code reuse we can get between the two options.
As I see it Prism has these "parts":
- Shell (Bootstrapper and such)
- Modules
- Services (not web-services)
- Regions
- Loosely Coupled Events (IEventAggregator)
- Unity (though really this is a standalone product)
As I look at this, the only part that absolutely must be used with Silverlight/WPF is Regions.
The shell may be a bit tricky, but I think It could be done in an ASP.NET app. I also think that Modules (non-Region offering modules) should also be doable. Using IEventAggregator and Unity should be easy.
The only problem I have is that I am not really experienced in ASP.NET programming, so I am not sure of my assumptions. I would love some feed back from someone who is familiar with both Prism and ASP.NET before the discussion on this goes into full swing (here at my company), .
Basically, I want to make Prism modules that will run web-services and business logic. I then want to take these modules and (re)use them in ASP.NET apps and WPF/Silverlight Prism Modules (via Regions).
Am I charting a difficult journey by trying to merge these two systems?