Free Sample
+ Collection

Microsoft Enterprise Library 5.0

Sachin Joshi

Develop Enterprise applications using reusable software components of Microsoft Enterprise Library 5.0 with this book and eBook
RRP $29.99
RRP $49.99
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781849680905
Paperback276 pages

About This Book

  • 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


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.

Table of Contents

Chapter 1: Getting Started with Enterprise Library
Introducing Enterprise Library
Wiring Application Blocks
Functional Application Blocks
Functional Application Block Dependency
System requirements
Installing Enterprise Library
Chapter 2: Data Access Application Block
Working of Data Access Application Block
Developing an application
Retrieving records using ExecuteReader
Retrieving records using DataSet
Retrieving a record as an object
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
Chapter 3: Logging Application Block
Developing an application
Exploring design elements
Chapter 4: Exception Handling Application Block
Developing an application
Wrapping an exception using Wrap handler
Replacing an exception using Replace handler
Logging an exception using Logging handler
WCF fault contract exception handler
Implementing custom exception handler
Chapter 5: Caching Application Block
Developing an application
Reloading expired items
Configuring Isolated Cache Storage Backing Store
Configuring Database Cache Storage
Configuring and encrypting cached data
Chapter 6: Validation Application Block
Validation Application Block features
Developing an application
Understanding 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
Integrating the Validation block with ASP.NET
Implementing a Custom Validator
Chapter 7: Security Application Block
Developing an application
Implementing a custom Authorization Provider
Chapter 8: Cryptography Application Block
Developing an application
Working of Hash Provider
Working of symmetric cryptography providers

What You Will Learn

  • 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.


Read More