Posting the source code for my #mix09 and #techdays (Belgium) talk

.NET, Blend, IdentityMine, MIX, Silverlight, Technical stuff, WCF, Work, WPF
No Comments
Note: I just updated the title for this article, sorry to all of you who were waiting for the TechDays Belgium source code and didn’t realize it was here :)

I just posted the source code of the demo applications I used in my MIX09 talk “Working across the client continuum”.

The source code is structured as follows:

  • DotNetContinuum: This solution contains the following projects:
    • DotNetContinuum: a WCF service configured with 2 endpoints (SOAP and JSON), as well as 3 client applications:
    • DotNetContinuum.Mvc: An ASP.NET MVC application showing a “pure” ASP.NET MVC application enhanced with AJAX content. See the following files
      • HomeController.cs (in Controllers): Contains the “ServerDateTime” action.
      • ServerDateTime.aspx (in Views/Home): Contains the view code for ServerDateTime.
      • Index.aspx (in Views/Home): Start page for the MVC application, contains the links to ServerDateTime, as well as the AJAX code.
      • Silverlight.html: Start page for the Silverlight application.
    • DotNetContinuum.SL: A Silverlight application connecting to the WCF service in an asynchronous way. See the following files:
      • Page.xaml: Front end with a very simple UI.
      • Page.xaml.cs: Code behind with the code to connect to the WCF service.
    • DotNetContinuum.Wpf: A WPF application connecting to the WCF service in an asynchronous way. See the following files:
      • Window.xaml: Front end with a very simple UI.
      • Window.xaml.cs: Code behind with the code to connect to the WCF service.
  • Customers: This solution is a WCF service reading a list of customers from an XML file and delivering them as a list of Customer objects.
    • CustomerAccess.cs: Contains the LINQ to XML code used to read and write the XML file.
    • Customer.cs: The class used to pass information between the service and the client.
    • CustomerService.svc.cs: The service implementation.
    • Customers.xml: The “data base” of customers
    • Note also that there is a unit test project in the solution, used to unit test the WCF service.
  • CustomersApplication: This solution contains client applications for the Customers WCF service.
    • CustomersApplication.Mvc: An ASP.NET MVC and AJAX client.
      • HomeController.cs: Contains the “ShowCustomers” action.
      • ShowCustomers.aspx: Contains a mix of ASP.NET MVC and AJAX code to interact with the WCF service.
      • Silverlight.html: Start page for the Silverlight application.
    • CustomersApplication.SL: The Silverlight application connecting to the WCF service and showing the list of customers.
    • CustomersApplication.WPF: Same application, implemented in WPF.

The last applications (CustomersApplication.SL and CustomersApplication.WPF) are implemented using the MVVM pattern, and share a maximum of code.

As soon as I have a moment, I will post a walkthrough of my demos. In the mean time, you can catch the Powerpoint slides and the talk’s video from the MIX09 session page.

Have fun!!

GalaSoft Laurent Bugnion
Laurent Bugnion (GalaSoft)
Share on Facebook

Leave a Reply