s developer s guide content on the back microsoft and ... · pdf filesome examples depicted...
TRANSCRIPT
Developing Silverlight line of BuSineSS ApplicAtionS
For more information explore:msdn.microsoft.com/practices
Software Architecture and Software Development
patterns & practices Proven practices for predictable results
Save time and reduce risk on your software development projects by incorporating patterns & practices, Microsofts applied engineering guidance that includes both production quality source code and documentation.
The guidance is designed to help software development teams:
Make critical design and technology selection decisions by highlighting the appropriate solution architectures, technologies, and Microsoft products for common scenarios
Understand the most important concepts needed for success by explaining the relevant patterns and prescribing the important practices
Get started with a proven code baseby providing thoroughly tested software and source that embodies Microsofts recommendations
The patterns & practices team consists of experienced architects, developers, writers, and testers. We work openly with the developer community and industry experts, on every project, to ensure that some of the best minds in the industry have contributed to and reviewed the guidance as it is being developed. We also love our role as the bridge between the real world needs of our customers and the wide range of products and technologies that Microsoft provides.
If you need to solve enterprise software development challenges such as validation, caching, logging, and exception handling in your Silverlight line-of-business applications, the Silverlight Integration Pack for Microsoft Enterprise Library 5.0 can help. It provides guidance and reusable Silverlight components designed to encapsulate recommended practices that facilitate consistency, ease of use, integration, and extensibility. It also helps you port your existing line-of-business applications that already use Enterprise Library to Silverlight. Note that the integration pack does not cover Silverlight for Windows Phone.
This guide will help you make the most of the Silverlight Integration Pack for Enterprise Library 5.0. It is focused on the desktop Silverlight platform and comes with an accompanying reference implementation to demonstrate how you can leverage Enterprise Library in a Silverlight application. It covers the Validation, Caching, Logging, Exception Handling, and Policy Injection Application Blocks.
Each chapter contains an overview of an application block, various techniques for applying the block, and a description of how that block was applied in the reference implementation so you can begin realizing the benefits of the Silverlight Integration Pack for Enterprise Library 5.0.
Develo
ping S
ilverligh
t lin
e of B
uSin
eSS ApplicAtio
nS
Stock Trader V2 Reference Implementation (RI)
Exception Handling
Exception handling applied
Exception handling in asynchronous web service
Logging exceptions
Integrating withWCF Data Services
Asynchronous method tracer
Logging
Logging applied
Runtime changes
Logging to isolated storageLogging to a service
Logging to an event
Appendix
Interception
Interception applied
Type and instance interception
Policy injection
Caching
Proactive caching
Caching applied
System.Runtime.Caching
Isolated storagecaching
In Memory caching
Validation
Validation applied(View) Model support
Validation in Silverlight
Validating with WCF Data Services
Validating with WCF RIA Services
Cross-tier validation
Introduction
Enterprise Library Silverlight Integration Pack
Conguring Enterprise LibraryGenerating XAML conguration lesConsuming XAML conguration les
Introduction to Enterprise Library
Installing Enterprise Library Silverlight Integration PackSupported scenarios
Content on the back and spine is place-holder
Second Edition
DeveloperS guiDe to MicroSoft enterpriSe liBrAryDominic Betts Julian DominguezHernan de LahitteGrigori MelnikFernando SimonazziMani Subramanian
Foreword by S. Somasegar PREVIEWMay 2013
COMMUNITY PREVIEW LICENSE
This document is a preliminary release that may be changed substantially prior to final
commercial release. This document is provided for informational purposes only and
Microsoft makes no warranties, either express or implied, in this document. Information in
this document, including URL and other Internet Web site references, is subject to change
without notice. The entire risk of the use or the results from the use of this document
remains with the user. Unless otherwise noted, the companies, organizations, products,
domain names, e-mail addresses, logos, people, places, and events depicted in examples
herein are fictitious. No association with any real company, organization, product, domain
name, e-mail address, logo, person, place, or event is intended or should be inferred.
Complying with all applicable copyright laws is the responsibility of the user. Without
limiting the rights under copyright, no part of this document may be reproduced, stored in
or introduced into a retrieval system, or transmitted in any form or by any means
(electronic, mechanical, photocopying, recording, or otherwise), or for any purpose, without
the express written permission of Microsoft Corporation.
Microsoft may have patents, patent applications, trademarks, copyrights, or other
intellectual property rights covering subject matter in this document. Except as expressly
provided in any written license agreement from Microsoft, the furnishing of this document
does not give you any license to these patents, trademarks, copyrights, or other intellectual
property.
2013 Microsoft. All rights reserved.
Microsoft, Visual Studio, and Windows are trademarks of the Microsoft group of companies.
All other trademarks are property of their respective owners.
2
Copyright and Terms of Use
This document is provided as-is. Information and views expressed in this document, including URL
and other Internet Web site references, may change without notice.
Some examples depicted herein are provided for illustration only and are fictitious. No real
association or connection is intended or should be inferred.
This document does not provide you with any legal rights to any intellectual property in any
Microsoft product. You may copy and use this document for your internal, reference purposes.
2013 Microsoft. All rights reserved.
Microsoft, Visual Basic, Visual Studio, Windows, Windows Azure, and Windows Server are
trademarks of the Microsoft group of companies. All other trademarks are property of their
respective owners.
3
Preface .................................................................................................................................................... 9
About This Guide ................................................................................................................................. 9
What Does This Guide Cover?......................................................................................................... 9
What This Guide Does Not Cover ................................................................................................. 10
How Will This Guide Help You? ..................................................................................................... 10
Whos Who ....................................................................................................................................... 10
What Do You Need to Get Started? .................................................................................................. 12
Chapter 1 - Welcome to the Library ..................................................................................................... 13
Meet the Librarian ............................................................................................................................ 13
What You Get with Enterprise Library .............................................................................................. 13
Things You Can Do with Enterprise Library ....................................................................................... 14
Why You Should Use Enterprise Library ........................................................................................... 17
Some Fundamentals of Enterprise Library ........................................................................................ 18
Choosing Which Blocks to Install .................................................................................................. 18
Installing Enterprise Library .......................................................................................................... 19
Assemblies and References .......................................................................................................... 19
Configuring Enterprise Library .......................................................................................................... 20
Diving in with an Example ............................................................................................................. 21
Configuration Classes .................................................................................................................... 21
Instantiating an