Microsoft Application Blocks
Microsoft Application Blocks
Application Blocks are classes distributed as Visual Studio Project which you can dowload from Microsoft Website and add to your .Net Application.They are written by Microsoft's Patterns and Practices team . Microsoft has released several Application Blocks that most common programming tasks such as.
- Caching Application Block: Developers can use this application block to incorporate a cache in their applications. Pluggable cache providers and persistent backing stores are supported.
- Cryptography Application Block: Developers can use this application block to incorporate hashing and symmetric encryption in their applications.
- Data Access Application Block: Developers can use this application block to incorporate standard database functionality in their applications, including both synchronous and asynchronous data access and returning data in a range of formats.
- Exception Handling Application Block: Developers and policy makers can use this application block to create a consistent strategy for processing exceptions that occur throughout the architectural layers of enterprise applications. Logging Application Block: Developers can use this application block to include logging functionality for a wide range of logging targets in their applications. This release adds asynchronous logging capabilities.
- Policy Injection Application Block: Powered by the Interception mechanism built into Unity, this application block can be used to implement interception policies to streamline the implementation of common features, such as logging, caching, exception handling, and validation, across a system.
- Security Application Block: Developers can use this application block to incorporate authorization and security caching functionality in their applications.
- Semantic Logging Application Block: This application block provides a set of destinations (sinks) to persist application events published using a subclass of the EventSource class from the System.Diagnostics.Tracing namespace. Sinks include Microsoft Azure table storage, SQL Server databases, and flat files with several formats and rolling capabilities. Developers can extend the block by creating custom formatters and sinks. For those sinks that can store structured data, the block preserves the full structure of the event payload in order to facilitate analyzing or processing the logged data. Events can be persisted in-process or collected and persisted out-of-process in a separate service.
- Transient Fault Handling Application Block: This application block makes on-premises or cloud applications more resilient to transient failures by providing intelligent retry logic mechanisms.
- Unity Application Block: Developers can use this application block as a lightweight and extensible dependency injection container with support for constructor, property, and method call injection, as well as instance and type interception. This release adds support for Windows Store apps as well as the registration by convention feature to ease the task of configuring Unity.
- Validation Application Block: Developers can use this application block to create validation rules for business objects that can be used across different layers of their applications.
Application Blocks are the best way to perform the specific task in .NET. We can also extend these classes. Application blocks makes our development faster and also ensures the best practices.
Why We Need Application Blocks
- Best way for performing specific task in .NET
- Using application block makes the development faster and more modular development
- Source code for application blocks are available in the form of projects so that we can easily modify them and can use for our learning purpose
- Maintains consistency in our code