& Silverlight, Windows Phone 7, Windows Azure, jQuery, OData and RIA Services. Shaken, not stirred....

32
& Silverlight, Windows Phone 7, Windows Azure, jQuery, OData and RIA Services. Shaken, not stirred. Kevin Dockx @kevindockx http://blog.kevindockx.com Maarten Balliauw @maartenballiauw http://blog.maartenbal liauw.be
  • date post

    21-Dec-2015
  • Category

    Documents

  • view

    219
  • download

    2

Transcript of & Silverlight, Windows Phone 7, Windows Azure, jQuery, OData and RIA Services. Shaken, not stirred....

Page 1: & Silverlight, Windows Phone 7, Windows Azure, jQuery, OData and RIA Services. Shaken, not stirred. Kevin Dockx @kevindockx .

&Silverlight, Windows Phone 7, Windows Azure, jQuery, OData and RIA Services.Shaken, not stirred.

Kevin Dockx@kevindockxhttp://blog.kevindockx.com

Maarten Balliauw@maartenballiauwhttp://blog.maartenballiauw.be

Page 2: & Silverlight, Windows Phone 7, Windows Azure, jQuery, OData and RIA Services. Shaken, not stirred. Kevin Dockx @kevindockx .

&Silverlight, Windows Phone 7, Windows Azure, jQuery, OData and RIA Services.Shaken, not stirred.

Kevin Dockx@kevindockxhttp://blog.kevindockx.com

Maarten Balliauw@maartenballiauwhttp://blog.maartenballiauw.be

Page 3: & Silverlight, Windows Phone 7, Windows Azure, jQuery, OData and RIA Services. Shaken, not stirred. Kevin Dockx @kevindockx .

&Silverlight, Windows Phone 7, Windows Azure, jQuery, OData and RIA Services.Shaken, not stirred.

Kevin Dockx@kevindockxhttp://blog.kevindockx.com

Maarten Balliauw@maartenballiauwhttp://blog.maartenballiauw.be

Page 4: & Silverlight, Windows Phone 7, Windows Azure, jQuery, OData and RIA Services. Shaken, not stirred. Kevin Dockx @kevindockx .

Who am I?

• Maarten Balliauw• Antwerp, Belgium• www.realdolmen.com• Technology Specialist Windows Azure• Co-founder of AZUG• Focus on web• ASP.NET, ASP.NET MVC, PHP, Azure, …• MVP ASP.NET

• http://blog.maartenballiauw.be • @maartenballiauw

Page 5: & Silverlight, Windows Phone 7, Windows Azure, jQuery, OData and RIA Services. Shaken, not stirred. Kevin Dockx @kevindockx .

Agenda

• Organizing an event like TechDays...• Problem...• Solution & technologies• Silverlight, WCF RIA Services, Windows Phone 7• ASP.NET MVC• jQuery & jQuery Mobile• Windows Azure

• What to remember?

Page 6: & Silverlight, Windows Phone 7, Windows Azure, jQuery, OData and RIA Services. Shaken, not stirred. Kevin Dockx @kevindockx .

Organizing an event like TechDays...

• Feedback loop with conference attendees is difficult• How are the sessions?• How’s each speaker?• Is the airconditioning too low?

• Twitter is an option• Not everyone uses #techdays11

• Earliest feedback usually after the event

Page 7: & Silverlight, Windows Phone 7, Windows Azure, jQuery, OData and RIA Services. Shaken, not stirred. Kevin Dockx @kevindockx .

Live feedback? Let’s build a solution...

• Establish a connection with speakers & audience• Short, to-the-point questions:• How’s the speaker?• How’s the session?• Any remarks?

• Top session list• Accessible through a variety of devices

Page 8: & Silverlight, Windows Phone 7, Windows Azure, jQuery, OData and RIA Services. Shaken, not stirred. Kevin Dockx @kevindockx .

High level overview

Large screensFront-end for attendees Back-end

Page 9: & Silverlight, Windows Phone 7, Windows Azure, jQuery, OData and RIA Services. Shaken, not stirred. Kevin Dockx @kevindockx .

3 screens and a cloud?

• Well...• Windows Phone 7• Any device with a web browser can navigate to

http://techdays.realdolmen.com• iPhone• iPad• Android• Symbian• ...

• Web browser• ...and a cloud!

Page 10: & Silverlight, Windows Phone 7, Windows Azure, jQuery, OData and RIA Services. Shaken, not stirred. Kevin Dockx @kevindockx .

Backend: WCF RIA Services

• Automates/simplifies creating a service boundary trust• Common concerns• Validation• Authentication / authorization• Change tracking

Page 11: & Silverlight, Windows Phone 7, Windows Azure, jQuery, OData and RIA Services. Shaken, not stirred. Kevin Dockx @kevindockx .

Backend: WCF RIA Services

• Best way to work when main app is a Silverlight app• DomainContext / Entity generation• Authentication / Authorization• Validation• Change tracking

• Operations can be exposed as SOAP / OData endpoint• Reuse of service layer throughout a variety of clients• Every Domain Service IS a WCF Service• Reuse authentication service

Page 12: & Silverlight, Windows Phone 7, Windows Azure, jQuery, OData and RIA Services. Shaken, not stirred. Kevin Dockx @kevindockx .

Backend integration: Silverlight applications

• Back Office• Administrative SL app• WCF RIA Services way of working• Also used for reporting / charting

Page 13: & Silverlight, Windows Phone 7, Windows Azure, jQuery, OData and RIA Services. Shaken, not stirred. Kevin Dockx @kevindockx .

DEMOBack office / WCF RIA Services

Page 14: & Silverlight, Windows Phone 7, Windows Azure, jQuery, OData and RIA Services. Shaken, not stirred. Kevin Dockx @kevindockx .

Backend integration: Silverlight applications

• Top session list• Focus on design

• Twitter app• Focus on design• Twitter API

Page 15: & Silverlight, Windows Phone 7, Windows Azure, jQuery, OData and RIA Services. Shaken, not stirred. Kevin Dockx @kevindockx .

Backend integration: Windows Phone 7 application

• Focus on design• UI, UX & product design is important• … and can cost quite some time

• Integration with WCF RIA Services• Through SOAP endpoint• … and even the authentication service works

• Concerns about data usage• Connections are only made when absolutely necessary

Page 16: & Silverlight, Windows Phone 7, Windows Azure, jQuery, OData and RIA Services. Shaken, not stirred. Kevin Dockx @kevindockx .

DEMOWindows Phone 7

Page 17: & Silverlight, Windows Phone 7, Windows Azure, jQuery, OData and RIA Services. Shaken, not stirred. Kevin Dockx @kevindockx .

ASP.NET MVC 3

• One set of Controllers

• Three sets of Views• Web browser• Mobile browser (jQuery mobile)• WP7 web browser (pointing to Marketplace)

17

Page 18: & Silverlight, Windows Phone 7, Windows Azure, jQuery, OData and RIA Services. Shaken, not stirred. Kevin Dockx @kevindockx .

ASP.NET MVC 3 & WCF RIA Services

• Uses WCF RIA services through SOAP endpoint• So what about OData?

• There’s some tuning required: • Optional parameters are cumbersome• Authentication service

• By the way...• jQuery & WCF RIA Services: http://jeffh.me/wcfriajs

Page 19: & Silverlight, Windows Phone 7, Windows Azure, jQuery, OData and RIA Services. Shaken, not stirred. Kevin Dockx @kevindockx .

DEMOASP.NET MVC 3

Page 20: & Silverlight, Windows Phone 7, Windows Azure, jQuery, OData and RIA Services. Shaken, not stirred. Kevin Dockx @kevindockx .

jQuery mobile

• Alpha stage!• Cross-platform, cross-device• Based on HTML5 markup & jQuery• Touch optimized layout & widgets• Theming• Automatically provides:• Transitions• Navigation framework

Page 21: & Silverlight, Windows Phone 7, Windows Azure, jQuery, OData and RIA Services. Shaken, not stirred. Kevin Dockx @kevindockx .

DEMOjQuery Mobile

Page 22: & Silverlight, Windows Phone 7, Windows Azure, jQuery, OData and RIA Services. Shaken, not stirred. Kevin Dockx @kevindockx .

ASP.NET MVC 3

• Application built using standard ASP.NET MVC 3 project template

• And the new kids on the block!

Page 23: & Silverlight, Windows Phone 7, Windows Azure, jQuery, OData and RIA Services. Shaken, not stirred. Kevin Dockx @kevindockx .

New kids on the block?

• Package management• Simplifies 3rd party

components integration • Has a rich ecosystem of

packages• I focus on development,

NuGet does package mgmt.

• Takes application wiring out of hands

• Uses MEF but adds:• MVC3 integration• CompositionDependencyResolver• Integrates assemblies in /bin• Exports everything : IController by

convention

• Available through NuGet as well

Page 24: & Silverlight, Windows Phone 7, Windows Azure, jQuery, OData and RIA Services. Shaken, not stirred. Kevin Dockx @kevindockx .

DEMONuGet - MefContrib

Page 25: & Silverlight, Windows Phone 7, Windows Azure, jQuery, OData and RIA Services. Shaken, not stirred. Kevin Dockx @kevindockx .

Windows Azure & SQL Azure

• Rapid availability of infrastructure• Only one instance during development• More instances right now

• Tools you're familiar with• Seamless integration with WCF RIA Services, ASP.NET MVC 3, ...• Pretty cheap on the bill!

25

Page 26: & Silverlight, Windows Phone 7, Windows Azure, jQuery, OData and RIA Services. Shaken, not stirred. Kevin Dockx @kevindockx .

DEMOWindows Azure & SQL Azure

Page 27: & Silverlight, Windows Phone 7, Windows Azure, jQuery, OData and RIA Services. Shaken, not stirred. Kevin Dockx @kevindockx .

What to remember?

• Design takes time• WCF RIA Services• Made rapid application development possible• Integrates fine with other technologies• Waiting (anxiously) on OData write support

• jQuery Mobile is a pleasant surprise• ASP.NET MVC 3 is very extensible• Windows Azure allows for cheap, temporary hosting

27

Page 28: & Silverlight, Windows Phone 7, Windows Azure, jQuery, OData and RIA Services. Shaken, not stirred. Kevin Dockx @kevindockx .

Stay up to date with MSDN Belux

• Register for our newsletters and stay up to date:http://www.msdn-newsletters.be• Technical updates• Event announcements and registration• Top downloads

• Follow our bloghttp://blogs.msdn.com/belux

• Join us on Facebookhttp://www.facebook.com/msdnbehttp://www.facebook.com/msdnbelux

• LinkedIn: http://linkd.in/msdnbelux/ • Twitter: @msdnbelux

Download MSDN/TechNet Desktop Gadget

http://bit.ly/msdntngadget

Page 29: & Silverlight, Windows Phone 7, Windows Azure, jQuery, OData and RIA Services. Shaken, not stirred. Kevin Dockx @kevindockx .

TechDays 2011 On-Demand

• Watch this session on-demand via Channel9http://channel9.msdn.com/belux

• Download to your favorite MP3 or video player• Get access to slides and recommended resources by the speakers

Page 30: & Silverlight, Windows Phone 7, Windows Azure, jQuery, OData and RIA Services. Shaken, not stirred. Kevin Dockx @kevindockx .

Resources

• Silverlight & WCF RIA Services• http://www.silverlight.net• http://www.silverlight.net/getstarted/riaservices

• ASP.NET MVC 3• http://asp.net/mvc

• jQuery• http://www.jquery.com• http://www.jquerymobile.com

• Windows Azure• http://www.azure.com

Page 31: & Silverlight, Windows Phone 7, Windows Azure, jQuery, OData and RIA Services. Shaken, not stirred. Kevin Dockx @kevindockx .

Vote us to #1

• Browse to http://techdays.realdolmen.com• Login with your badge identifier• Vote for our session• Suggested rating: 5 stars • Suggested free text: AWESOME!

Page 32: & Silverlight, Windows Phone 7, Windows Azure, jQuery, OData and RIA Services. Shaken, not stirred. Kevin Dockx @kevindockx .

THANK YOU

&Kevin Dockx@kevindockxhttp://blog.kevindockx.com

Maarten Balliauw@maartenballiauwhttp://blog.maartenballiauw.be