Upload
philippa-anderson
View
214
Download
0
Tags:
Embed Size (px)
Citation preview
Moving Applications to the Cloud
Scott DensmoreSr. DeveloperMicrosoft patterns & practices
Self Assessment
This session is developer focused
[TestMethod] public void DisplayReturnsEmptyViewName() { var mockSurveyStore = new Mock<ISurveyStore>(); mockSurveyStore.Setup(r =>
r.GetSurveyByTenantAndSlugName(It.IsAny<string>(), It.IsAny<string>(), It.IsAny<bool>()))
.Returns(new Survey()); var controller = new SurveysController(mockSurveyStore.Object,
default(ISurveyAnswerStore));
var result = controller.Display(string.Empty, string.Empty) as ViewResult;
Assert.AreEqual(string.Empty, result.ViewName); }
Assumption
You already know Windows Azure
COS202
Plan
Moving to the Cloud: A Simple Case Study
a-Expense
a-Expense
a-Expense
a-Expense
a-Expense
a-Expense
“a- Expense”
A classic intranet application
Demo
Identity
SIM325
Session and Profile
Exception Handling / Logging
<configSections> <section name="loggingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="true" /> <section name="exceptionHandling" type="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Configuration.ExceptionHandlingSettings, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="true" /> <section name="microsoft.identityModel" type="Microsoft.IdentityModel.Configuration.MicrosoftIdentityModelSection, Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> </configSections> <loggingConfiguration name="" tracingEnabled="true" defaultCategory="General"> <listeners> <add listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.SystemDiagnosticsTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" type="Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener, Microsoft.WindowsAzure.Diagnostics, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" traceOutputOptions="Timestamp, ProcessId" name="System Diagnostics Trace Listener" /> </listeners> <categorySources> <add switchValue="All" name="General"> <listeners> <add name="System Diagnostics Trace Listener" /> </listeners> </add>
COS210
Data Access
COS304COS310
Data Access – Using Table Storage
Data Access – Using Table Storage
Delivering Content from Blob Storage
Delivering Content from Blob Storage
Background Processes
$
Should it be on all the time?
DPR307
Pattern Matching Exercise
Resources
http://msdn.microsoft.com/practices
http://claimsid.codeplex.comhttp://wag.codeplex.com
Mail [email protected]
Blog/Twitterhttp://scottdensmore.typepad.com/@scottdensmore
Resources
www.microsoft.com/teched
Sessions On-Demand & Community Microsoft Certification & Training Resources
Resources for IT Professionals Resources for Developers
www.microsoft.com/learning
http://microsoft.com/technet http://microsoft.com/msdn
Learning
http://northamerica.msteched.com
Connect. Share. Discuss.
Complete an evaluation on CommNet and enter to win!
MS Tag Placeholder Slide
© 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.