PRISM 4.0 and WCF RIA Sample with MEF for MVVM

Topics: Prism v4 - Silverlight 4
Aug 23, 2010 at 6:09 AM

Hi, can anyone point me to a link where I will be able to download a sample applicatin using PRISM 4, WCF RIA service without Entity Framework and MEF for MVVM. I am baiscally looking for a sample everything above is hooked into one single application rather than separate application.

As a part of qucikstarts, if this cant come under the Quickstarts then in Advanced section I would like to see sample either from PRISM team or WCF RIA team.

I also want to leverage the Boolean expression based authorization configuration ( as in Ent Lib 5) to restrict the access at the client side silverlight application using claims or principal. If some one can point me to a sample for doing this would be great help.




Aug 26, 2010 at 7:07 PM
Edited Aug 26, 2010 at 7:07 PM

Hi Milind,

There is not such a Quickstart or Reference implementation in Prism v4 out-of-the-box that fulfill all your requirements so far. Based on our understating you need a sample application using Prism v4, with a different IoC than MEF, MVVM pattern implemented and WCF RIA services. Almost all your requirements are covered in the following separated applications:

  • MVVM: <PrismInstallationDir>\MVVM RI; <PrismInstallationDir>\Quickstarts\BasicMVVM; <PrismInstallationDir>\Quickstarts\MVVM
  • Unity as IoC: <PrismInstallationDir>\Quickstarts\Modularity\Desktop\ModularityWithUnity
  • There is not a sample that uses WCF RIA Services but the following one uses a similar approach: <PrismInstallationDir>\MVVM RI. This application make use of a custom implementation to write application logic in the mid-tier similar to WCF RIA services. For more information see the DomainObject and DomainObjects classes.

As for how to leverage EntLib to use other models (claims, roles, etc) in order to make your security assertions, you could take a look at the following documentation section on MSDN:

Please let me know if this helps.

Fernando Antivero

Sep 7, 2010 at 7:25 AM

Thanks for the reply, I have gone through all these apps, I wanted to see a single running application using all the ingredients in the PRISM 4.0 demonstrating following

1. Modularity with MEF

2. Commanding using DelegateCommand and navigation

3. Messaging with EventAggregation

4. MVVM implmentation using MEF

5. Validation and Exceptionhandling using WCF RIA services (optional)


If you come across any sample app like using all of the above then request you to please redirect me to it. Besides this is there any plumbing or mechanism avaialbe from within the PRISM block to refresh application wide settings as and when we change those in the <appsettings> section in the web.config file on the server. I don't know duplex service will work here