Microsoft Enterprise Library 5.0


Microsoft Enterprise Library 5.0
eBook: $29.99
Formats: PDF, PacktLib, ePub and Mobi formats
$25.49
save 15%!
Print + free eBook + free PacktLib access to the book: $79.98    Print cover: $49.99
$49.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Reviews
Support
Sample Chapters
  • Develop Enterprise Applications using the Enterprise Library Application Blocks
  • Set up the initial infrastructure configuration of the Application Blocks using the configuration editor
  • A step-by-step tutorial to gradually configure each Application Block and implement its functions to develop the required Enterprise Application

 

Book Details

Language : English
Paperback : 276 pages [ 235mm x 191mm ]
Release Date : November 2010
ISBN : 1849680906
ISBN 13 : 9781849680905
Author(s) : Sachin Joshi
Topics and Technologies : All Books, Enterprise Products and Platforms, Microsoft Development , Enterprise, Microsoft


Table of Contents

Preface
Chapter 1: Getting Started with Enterprise Library
Chapter 2: Data Access Application Block
Chapter 3: Logging Application Block
Chapter 4: Exception Handling Application Block
Chapter 5: Caching Application Block
Chapter 6: Validation Application Block
Chapter 7: Security Application Block
Chapter 8: Cryptography Application Block
Index
  • Chapter 1: Getting Started with Enterprise Library
    • Introducing Enterprise Library
    • Wiring Application Blocks
      • Unity Application Block
      • Policy Injection Application Block
    • Functional Application Blocks
      • Data Access Application Block
      • Logging Application Block
      • Exception Handling Application Block
      • Caching Application Block
      • Validation Application Block
      • Security Application Block
      • Cryptography Application Block
    • Functional Application Block Dependency
    • System requirements
    • Installing Enterprise Library
      • Enterprise Library Binaries
      • Configuration Editor for Visual Studio
      • Source Code of Enterprise Library
    • Summary
  • Chapter 2: Data Access Application Block
    • Working of Data Access Application Block
    • Developing an application
      • Referencing the required assemblies
      • Adding Data Access Settings
      • Adding a namespace
      • Understanding the Database class
        • SqlDatabase class
        • SqlCeDatabase class
        • OracleDatabase class
        • GenericDatabase class
      • Creating a Database instance
        • Using the DatabaseFactory class
        • Using Unity service locator
        • Using Unity container directly
    • Retrieving records using ExecuteReader
    • Retrieving records using DataSet
    • Retrieving a record as an object
      • Parameter mappers
      • Output mappers
        • Default row mappers
        • Row mapping using MapBuilder
        • Row mapping using IRowMapper<TResult>
        • Result Set mappers
      • Data Accessors
      • Creating and executing Accessors
    • Retrieving multiple records as an object collection
    • Retrieving records as XML
    • Executing a command using ExecuteNonQuery
    • Retrieving scalar values
    • Updating records using DataSet
    • Working with transactions
    • Summary
  • Chapter 3: Logging Application Block
    • Developing an application
      • Referencing assemblies
      • Adding Logging Settings
      • Adding namespaces
      • Writing a log message
    • Exploring design elements
      • LogEntry
      • Logger
        • Using Logger
      • LogWriter
      • Adding trace source categories
        • Configuring special categories
        • Configuring log categories
      • Configuring trace listeners
        • Configuring Event Log Trace Listener
        • Configuring Flat File Trace Listener
        • Configuring Rolling Flat File Trace Listener
        • Configuring XML Trace Listener
        • Configuring Database Trace Listener
        • Configuring to send log messages to an e-mail address
        • Configuring System Diagnostics Trace Listener
        • Configuring Message Queuing Trace Listener
        • Configuring WMI Trace Listener
        • Configuring custom trace listeners
      • Configuring log message formatters
      • Configuring logging filters
        • Adding a category filter
        • Adding a logging enabled filter
        • Adding a priority filter
      • TraceManager and Tracer
        • Tracing activities
      • Customizing Logging block elements
        • Implementing a custom trace listener
        • Implementing a custom log formatter
        • Implementing a custom log filter
    • Summary
  • Chapter 4: Exception Handling Application Block
    • Developing an application
      • Referencing required assemblies
      • Adding initial Exception Handling settings
      • Adding namespaces
      • Understanding the Exception Handling block
        • Exception policy
        • Exception types
        • Exception handler
        • Exception Manager class
      • Stitching together: Exception Policy/Type/Handler
      • Creating an Exception Handling block object
        • Using the ExceptionPolicy class
        • Using Unity service locator
        • Using Unity container directly
    • Wrapping an exception using Wrap handler
      • Configuring a Wrap exception handler
    • Replacing an exception using Replace handler
      • Configuring a Replace handler
    • Logging an exception using Logging handler
      • Configuring a Logging handler
    • WCF fault contract exception handler
      • Generic fault contract creation
      • Configuring a fault contract exception handler
      • Applying the ExceptionShielding attribute
      • Exception handling: WCF Service consumer
    • Implementing custom exception handler
      • Configuring custom exception handler
    • Summary
  • Chapter 5: Caching Application Block
    • Developing an application
      • Referencing the required assemblies
      • Adding the initial Caching Settings
      • Adding namespaces
      • Creating the CacheManager instance
        • Using the static factory class
        • Using the Unity Service Locator
        • Using the Unity container directly
      • Configuring the in-memory backing store
      • Adding items to cache
        • Understanding the expiration process
      • Expiration policies
        • Understanding the Scavenging process
      • Reading cached items
      • Removing cached items
      • Flushing cached items
    • Reloading expired items
    • Configuring Isolated Cache Storage Backing Store
    • Configuring Database Cache Storage
    • Configuring and encrypting cached data
      • Configuration steps
    • Summary
  • Chapter 6: Validation Application Block
    • Validation Application Block features
    • Developing an application
      • Referencing the required assemblies
      • Adding namespaces
    • Understanding Validators
      • Value Validators
      • Object Validators
      • Single Member Validators
      • Composite Validators
    • Understanding Rule Sets
    • Understanding ValidatorFactory
    • Understanding ValidationResults
    • Validating objects using attributes
    • Validating values programmatically
    • Validating objects using self-validation
    • Validating objects using configuration
    • Integrating with Windows Forms-based applications
      • Steps to leverage ValidationProvider
    • Integrating the Validation block with ASP.NET
    • Implementing a Custom Validator
    • Summary
  • Chapter 7: Security Application Block
    • Developing an application
      • Referencing required/optional assemblies
      • Adding initial security settings
      • Adding namespaces
      • Creating security application block objects
        • Using the static factory class
        • Using Unity service locator
        • Using Unity container directly
      • Understanding Authorization Providers
        • Authorization Rule Provider
        • AzMan Authorization Provider
      • Understanding Security Cache Provider
        • CachingStoreProvider class
        • Configuring Security Cache Provider
        • Caching and generating a token for an authenticated user
      • Associating a token with User Identity, Principal and Profile objects
        • Retrieving User Identity, User Principal, and Profile objects
        • Expiring User Identity, User Principal, and Profile objects
    • Implementing a custom Authorization Provider
      • Custom XML Authorization Provider
    • Summary
  • Chapter 8: Cryptography Application Block
    • Developing an application
      • Referencing required and optional assemblies
      • Adding namespaces
      • Adding initial cryptography settings
    • Working of Hash Provider
      • Creating CryptographyManager and IHashProvider instances
        • Using the static facade
        • Using Unity service locator
        • Using Unity container directly
      • Configuring Hash Provider
      • Generating a hash value
      • Comparing hash values
      • Implementing a custom Hash Provider
        • Configuring a Custom Hash Provider
    • Working of symmetric cryptography providers
      • Creating CryptographyManager and ISymmetricCryptoProvider instances
        • Using the static facade
        • Using Unity service locator
        • Using Unity container directly
      • Configuring the symmetric cryptography provider
      • Exporting the key
      • Encrypting data
      • Decrypting data
      • Implementing a custom symmetric provider
        • Configuring the custom symmetric provider
    • Summary

Sachin Joshi

Sachin Joshi holds a Master's Degree in Computer Applications and a Bachelor's Degree in Business Administration; he is a Microsoft Certified Professional Developer in ASP.NET and Microsoft Certified Technology Specialist in WCF and .NET 3.5 Windows. He has over 5 years of industry experience developing enterprise applications with Microsoft .NET and related technologies. Sachin was performing a juggling act between his college degree and running his own optical business for around 5 years before joining the IT industry.

Sachin is currently working as a Consultant in a reputed software company in Hyderabad, India. He has several years of experience in designing and architecting solutions for various domains and he has been involved with several complex engagements. His technical strengths include C, C++, C#, VB.NET, Microsoft .NET, AJAX, Design Patterns, SQL Server, JavaScript, and more. His current passion is Vala (http://live.gnome.org/Vala) a new C#-like programming language with the power of C.

Sachin blogs at http://fuzzydev.com and spends most of his time reading books and playing with different technologies. When not at work, Sachin spends time with his family, watching movies and playing video games. He and his wife have not only pledged but are working towards spreading awareness of the noble cause of organ donation. Sachin has a dream of opening a library for students who are economically disadvantaged, to enable them to grow. In the technology arena, Sachin is currently working on an open source project code named Apocalypse – lifting of the veil, a CMS based on ASP.NET 4.0.

Code Downloads

Download the code and support files for this book.


Submit Errata

Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.

Sample chapters

You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

Frequently bought together

Microsoft Enterprise Library 5.0 +    WS-BPEL 2.0 for SOA Composite Applications with Oracle SOA Suite 11g =
50% Off
the second eBook
Price for both: £32.45

Buy both these recommended eBooks together and get 50% off the cheapest eBook.

What you will learn from this book

  • Implement a custom trace listener, log formatter, and log filter
  • Configure the Exception Handling block and wrap or replace exceptions using a Wrap Handler or a Replace Handler
  • Log exception information using the Logging Handler
  • Integrate the Validation Application Block with Windows Forms-based applications
  • Integrate the Validation Application Block with ASP.NET web applications
  • Configure the Security block and authorization rules to validate based on the configured rules
  • Save user Identity/Principal/Profile in cache and obtain a temporary token
  • Retrieve cached user Identity/Principal/Profile using a token
  • Terminate a user session by expiring the cached identity
  • Configure the Cryptography block, generate a hash value for a given string, and compare a hash value with a string
  • Implement a custom Hash Provider and Symmetric Cryptography Provider
  • Perform database operations more efficiently by leveraging the rich features of Data Access Application Block
  • Retrieve records as objects using Parameter, Row and Result Set Mappers
  • Log messages to Event Log, flat file and learn to configure categories, trace listeners and logging filters

In Detail

Microsoft Enterprise Library is a collection of reusable software components (also known as Application Blocks) that are designed to assist developers with common enterprise development challenges. Before using an Application block, you should have a good understanding of your application requirements and of the scenarios that the Application Block is designed to address.

This book covers the fundamental elements of each Application Block so that you get a good understanding of its concepts. This is followed by referencing the required and optional assemblies and the initial configuration of that block using the configuration editor. Finally, leverage Application Block features to achieve goals of the enterprise application development.

You will first get an overview of the different Application Blocks in Enterprise Library and their inter-dependencies. Then you will learn to install the Enterprise library and optionally the source code. Then you will learn about the individual functional Application Blocks: the Data Access Application Block, Logging Application Block, Exception Handling Application Block, Caching Application Block, Validation Application Block, Security Application Block, and Cryptography Application Block.

In the Caching Application Block chapter you will learn to reference the required assemblies, configure the initial settings, cache, retrieve, remove, and flush cached data. You will also learn to configure and leverage encryption providers to encrypt cached data.

In the Validation Application Block chapter you will be introduced to concepts such as Validators, ValidatorFactory, ValidationResults, and so on. You will learn to reference the required assemblies, set up the initial configuration, validate objects using attributes, validate values programmatically, validate using configuration, and also learn to integrate the Application block with Windows Forms and ASP.NET. Finally you will learn to implement a custom validator.

In the Security Application Block chapter you will be introduced to Authorization Providers and the Security Cache Provider. You will then learn about referencing required assemblies, configure security settings, and learn to set up and validate based on the authorization rules. You will also learn to leverage the Security cache provider to cache user Identity, Principal, and Profile. Finally you will learn to implement a custom Authorization Provider.

In the Cryptography Application Block chapter you will be introduced to Hashing and Cryptography providers; you will learn to reference required assemblies, set up the initial configuration, generate/compare hash values, and implement a custom hash provider. You will also learn to encrypt/decrypt data and also implement a custom symmetric cryptography provider.

A step by step tutorial that guides you through the process of building Enterprise applications using the Application Blocks in Microsoft Enterprise Library 5.0.

Approach

This is a step-by-step tutorial in which a chapter is dedicated to each Application Block of the Microsoft Enterprise Library 5.0. We will develop small applications to implement the functions in each Application Block all through the book.

Who this book is for

If you are a Programmer, Consultant, or an Associate Architect, who is interested in developing Enterprise applications, this book is for you. We assume that you already have a good knowledge of Microsoft .NET framework and the C# programming language.

Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Resources
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software