13 wp7 working with azure

Post on 07-Nov-2014

2.028 Views

Category:

Technology

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

 

TRANSCRIPT

Windows Phone 7

Li Jingnan / Wang Tao2011-7-15

1

Windows Phone Microsoft Corporation.

2 days 9:00 Introduction Anytao

10:30 Build a Silverlight Application Jason

13:00 Application Bar Anytao

14:30 Panorama and Pivots Jason

16:00 Launcher and Chooser Jason

9:00 Isolation Storage Anytao

10:30 Application Lifecycle Jason

13:00 Push Notification Anytao

14:30 Multitasking Jason

16:00 Local Database Anytao

9:00 Design Apps Using Expression Blend and Metro Jason

10:30 Marketing your Windows Phone Application Jason

13:00 Working with Azure Anytao

2

Windows Phone Microsoft Corporation.

about

anytao | Ethos

<ethos:Member id = “Wang Tao” msn = anytao@live.com weibo = http://weibo.com/anytao runat = “Senior System Architect”/>

Jason | Ethos

<ethos:Member id = “Li Jingnan” msn = zengnami@hotmail.com weibo = http://weibo.com/jn1981 runat = “SE”/>

Windows Phone Microsoft Corporation.

abouthttp://book.anytao.net

13 Working with Azure

Wang Tao / 2011-07-15Senior System Architect

Windows Phone Microsoft Corporation.

session outlineOverview

overview why phone + cloud? why WP7 + Azure? 5min Azure

identity storage service communications

Windows Azure toolkit for WP7

Windows Phone Microsoft Corporation.

why Phone + Cloud?

the cloud levels the playing field the cloud provides a larger pool of

resources from which to pull the cloud provides a way to reach

across device platforms

Windows Phone Microsoft Corporation.

why WP7 and Windows Azure?

PaaS: you build it, Windows Azure runs it automatic O/S patching scalable utility billing additional services (e.g. ACS, Traffic

Manager, Caching, CDN, etc.) common development tools

Visual Studio languages emulators for development

Windows Phone Microsoft Corporation.9

Click to add picture5m about Azure

Windows Phone Microsoft Corporation.

Windows Azure PlatformScalable compute and storageAutomated service managementFamiliar tools, technologies, languages

Relational storage for the cloudConsistent development modelAutomated database management

Connect existing apps to the cloudConnect through network boundariesEasily control authorization to apps

Windows Phone Microsoft Corporation.

WAZ Storage

Windows Azure

Microsoft Push

Notification Service

Bing Translator

Username & PasswordAccess TokenAccess TokenShared Access Signature

Any pictures?

Original TextTranslated Text

Translated TextTranslated

Text

User AuthenticationStore Image in

Windows Azure Blob Storage

SAS

Process ImageSend Notification

Process Image

Windows Phone Microsoft Corporation.

what are the pieces we just saw? identity storage services communications

Windows Phone Microsoft Corporation.

identity

Windows Phone Microsoft Corporation.

identity options create your own (e.g. username + password, token)

custom model ASP.NET membership providers

use a single existing identity system (e.g. Live Id, Facebook, etc.)

outsource identity management (e.g. Access Control Service)

Windows Phone Microsoft Corporation.

storage

Windows Phone Microsoft Corporation.

storage SQL Azure

Relational database Highly available Managed for you as a service

Windows Azure Tables Non-relational structured storage Massive scale-out OData

Windows Azure Blobs Big files REST

Windows Phone Microsoft Corporation.

SQL Azure: OData Service client sends data to web role web role stores data in SQL Azure

WebRole

(1)

(2)

Windows Phone Microsoft Corporation.

Windows Azure Blobs: public blobs client sends data to web

role web role stores data in

blobs client fetches public blobs

directly

WebRole

(1)

(2)

(3)

Windows Phone Microsoft Corporation.

Windows Azure Blobs: SAS

client gets Shared Access Signature from web role

client stores data in blobs client fetches public blobs

directly

WebRole

(1)

(2) (3)

Windows Phone Microsoft Corporation.

Windows Azure Tables: Proxy Calls client sends data to web role web role stores data in blobs

WebRole

(1)

(2)

Windows Phone Microsoft Corporation.

do not store your secrets on the phone

Windows Phone Microsoft Corporation.

services

Windows Phone Microsoft Corporation.

Web Role versus Worker Role Web Role has IIS Worker Role does not

DLL with Main() Both implement the

RoleEntryPoint

Windows Phone Microsoft Corporation.

scaling work in Windows Azure1. Web role receives

message2. Web role enqueues work3. Worker role polls queue4. Worker role sends

notifications

MPNS

Worker Role

Web Role

(1)

(2)

(3)

(4)

Windows Phone Microsoft Corporation.

multitenancy you can have more than one application running in your role

instance

Windows Phone Microsoft Corporation.

Content Delivery Network

CDN

CDN

CDN

CDN

CDN

CDN

Windows Phone Microsoft Corporation.

Traffic Manager

Windows Phone Microsoft Corporation.

Communications

Windows Phone Microsoft Corporation.

communications two communication models

Phone-initiated Cloud-initiated

Windows Phone Microsoft Corporation.

Phone-Initiated Communication Options HTTP-based, request/response framework choices (WCF, OData, WebRequest, etc.) wire format choices (SOAP, JSON, POX, etc.)

Windows Phone Microsoft Corporation.

Cloud-Initiated Communication Push Notifications

single connection between phone and Microsoft Push Notification Service

bandwidth- and battery-friendly no guarantee of delivery

three kinds of push notifications Raw – send a message to an application Toast – send a message to the user Tile – update an image, title, or count

Windows Phone Microsoft Corporation.

subscribing to Push Notifications phone opens a channel phone sends URL to cloud cloud pushes notifications

via URL Microsoft Push Notification

service notifies phone

MPNSWeb Role

(1)(2)

(3)

(4)

Windows Phone Microsoft Corporation.

what makes this easier?

Windows Phone Microsoft Corporation.

Windows Azure Toolkit for Windows Phone 7 (v1.2.3)http://watoolkitwp7.codeplex.com/

Windows Phone Microsoft Corporation.

Windows Azure Toolkit for Windows Phone 7

make it easier for phone developers to use Windows Azure toolkit includes:

client libraries sample applications source code documentation

get it: http://watoolkitwp7.codeplex.com/

Windows Phone Microsoft Corporation.36

demo04 Windows Azure Toolkit for WP7

/ WADT/ azure/ notification service

Windows Phone Microsoft Corporation.37

Click to add picturethank youthank youwww.anytao.com

Windows Phone Microsoft Corporation.

© 2011 Microsoft Corporation.

All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.

The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation.

MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

38

top related