virtual techdays india │ 28 - 30 september 2011 building windows phone 7 apps for windows azure -...

Post on 01-Apr-2015

214 Views

Category:

Documents

1 Downloads

Preview:

Click to see full reader

TRANSCRIPT

virtual techdaysINDIA │ 28 - 30 September 2011

Building Windows Phone 7 Apps For Windows Azure - Best Match with CloudJebarson Jebamony │ Consultant, Microsoft

Introduction Windows Azure Toolkit for Windows Phone ASP.net MVC3 Web Role Authentication Blobs Queues Tables Questions & Answers

virtual techdaysINDIA │ 28 - 30 September 2011

S E S S I O N A G E N D A

Availability, CDN.

On demand.

No infrastructure overhead.

SQL on cloud.

virtual techdaysINDIA │ 28 - 30 September 2011

Introduction

Toolkit & Project templates for Azure based apps on Windows Phone.

OOB support for authentication using ASP.net membership / ACS.

OOB integration with Azure storage account.

ACS support extended to Windows live, Yahoo, Google, ADS, Facebook, etc.

OOB integration with SQL Azure.

OOB support for Microsoft and Apple Push notification.

virtual techdaysINDIA │ 28 - 30 September 2011

Windows Azure Toolkit for Windows Phone

virtual techdaysINDIA │ 28 - 30 September 2011

Windows Azure Toolkit for Windows

PhoneASP.net MVC3 Web Role

Authentication Service

Storage Service

SQL Data Service

Push Notification

Service

Authentication Providers Live, Yahoo, Facebook, Google etc.

Azure ACS

Azure Queues

Windows Azure Toolkit for Windows Phone

Azure Blobs

Azure Tables

MS Push Notification Service

SQL Azure

Certificate for signed request made from the API.

User management.

Table access management.

Queue access management.

Full push notification management.

virtual techdaysINDIA │ 28 - 30 September 2011

ASP.net MVC3 Web Role

virtual techdaysINDIA │ 28 - 30 September 2011

ASP.net MVC3 Web Role – Demo

virtual techdaysINDIA │ 28 - 30 September 2011

Authentication

Windows Azure Toolkit for Windows Phone

AuthenticationClient

ASP.net MVC3 Web Role

Secure Certificate

AuthenticationService

1. Authentication Request

2. Service verifies the credentials across the selected membership.

3. Once the credentials are validated, the service creates a token and encrypts & signs it. The token will be identified for further transactions

4. The token is sent back along with a authentication succeeded message.

virtual techdaysINDIA │ 28 - 30 September 2011

Authentication – Demo

virtual techdaysINDIA │ 28 - 30 September 2011

Blobs

Windows Azure Toolkit for Windows Phone

SharedAccessSignatureServiceClient

ASP.net MVC3 Web RoleSecure Certificate

SharedAccessSignatureService

1. Instantiate CloudBlobClient using SAS / using the Blob Uri and authentication token

2. CloudBlobClient uses the SAS service / the authentication token to build the request to the REST API of the cloud storage container.

3. The request sent is processed and sent back as a response

CloudBlobClient4. The response is encapsulated as CloudOperationResponse and send back.

virtual techdaysINDIA │ 28 - 30 September 2011

Blobs – Demo

virtual techdaysINDIA │ 28 - 30 September 2011

Queues

Windows Azure Toolkit for Windows Phone

CloudQueueClient

ASP.net MVC3 Web Role

Secure Certificate

AzureQueueProxy

1. Instantiate CloudQueueClient using token

2. Send the request across to the AzureQueueProxy

3. Signs the request header with the authorization and expiry date time.

4. Sends back the CloudOperationResponse got from the Azure SDK.

virtual techdaysINDIA │ 28 - 30 September 2011

Queues – Demo

virtual techdaysINDIA │ 28 - 30 September 2011

Tables

Windows Azure Toolkit for Windows Phone

CloudTableClient

ASP.net MVC3 Web Role

Secure Certificate

AzureTableProxy

1. Define a TableServiceEntity with the schema of the table.2. Create a TableServiceContext with the authentication token.3. Make a request out of CloudTableClient / TableServiceContext as per need.

4. The request encapsulated along with the TableServiceSchema when send to the proxy service.

TableServiceContext Dat

aSer

vice

Colle

ction

5. The CloudOperationResponse brings the output per the request as a DataServiceCollection.

TableServiceEntity

virtual techdaysINDIA │ 28 - 30 September 2011

Tables – Demo

Windows Azure Toolkit for Windows Phone

Using Windows Azure Toolkit Project Template – Channel 9 Video

Questions on toolkit waztoolkitwp7@microsoft.com

virtual techdaysINDIA │ 28 - 30 September 2011

Resources

virtual techdaysINDIA │ 28 - 30 September 2011

Building Windows Phone 7 Apps For Windows Azure - Best Match with CloudQuestions & Answers

virtual techdaysTHANKS│22-24 November 2010

jebarv@microsoft.com │ http://jebarson.info │ @jebarson007

top related