Recently I have studied the source code of Microsoft Enterprise Library configuration, and I have a general understanding of its architecture. I have learned a lot about it. Although the code is simple, its architecture is flexible, scalability and configurability. It is worth learning and signing.
In daily work, a system application is not considered at the framework height. It may be because of laziness o
As msdn introduces logging, almost every enterprise-level application requires a function-log management function, that is, to record certain behaviors of an application, this allows administrators or programmers to understand the behavioral characteristics of programs and improve the "interactivity" between applications ".
The logging Application Block has good configurability and scalability. That is, you can change the configuration to define th
Is the basic configuration of a log module. This section describes the content and code examples of this module.
By default. the configuration information in the config file is in plain text. the built-in encryption/Decryption protection mechanism of NET encrypts the configuration information, or uses the protection mechanism provided by the enterprise database. You can select from the configuration tool, as shown in
You can choose either of them
Configuration File mode for Enterprise Library Verification Application Module:
1. Create a console application and create a Customer class. The Code is as follows:
using System;using System.Collections.Generic;using System.Linq;using System.Text;using Microsoft.Practices.EnterpriseLibrary.Validation.Validators;using Microsoft.Practices.EnterpriseLibrary.Validation;namespace ConsoleApplication1{class Program {static void Main(string[] args)
container, here I use Unity to restore the site and demonstrate how to solve the same problem with Unity ):
Now, if we have such a requirement, we can develop a log component to output the log information to a text file and format the output information to implement it with schematic code.
1. Create a new console application, add the required Dll file, and add the required reference:
Add reference:Using Microsoft. Practices. Unity;
2. test:
Using
The Unity module is still difficult for me to learn. Many things are the first time I learned, and some things are not easy to understand. So the content behind the Unity module should be understood by myself, let's add them later. Let's start with the subsequent chapters. After reading about the content behind Unity, we plan to leave four blogs for it. Therefore, the data access module starts from and thanks for your support.
Next let's go back to th
Three-step Enterprise Library support for MySQL database1. Create a Mysqldatabasedata classUsing microsoft.practices.enterpriselibrary.common.configuration;using Microsoft.practices.enterpriselibrary.common.configuration.containermodel;using Microsoft.practices.enterpriselibrary.data;using microsoft.practices.enterpriselibrary.data.configuration;using Microsoft.practices.enterpriselibrary.data.instrumentati
The Microsoft Enterprise Library cache block does not provide sqlcachedependency like system. Web. caching.Let's add one for it.
We can directly package the sqlcachedependency of system. Web. caching.
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Public class sqldependency: icacheitemexpiration
{
Private sqlcachedependency _ sqlcachedependency;
Public sql
In this section, we use Azure traffic Manager to load balance the primary secondary site, such as the red box:650) this.width=650; "height=" 702 "title=" clip_image002 "style=" Border-top:0px;border-right:0px;background-image: none;border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "Alt=" clip_image002 "src=" http://s3.51cto.com/wyfs02/M00/84/05/wKioL1eDb1fQkOJJAAEf9870dzc570.jpg "border=" 0 "/>With Azure traffic Manager (traffic manager), you can as
This page contains support matrices and support lifecycle policies for the Microsoft SQL Server JDBC driver.Microsoft JDBC driver supports life cycle matrices and policiesThe Microsoft Support life cycle (MSL) policy provides predictable, transparent information about the
same problem with unity ):
Now, if we have such a requirement, develop a log component to output the log information to a text file, and format the output information to be schematicCode.
1. Create a new console application, add the required DLL file, and add the required reference:
Add reference:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
UsingMicrosoft. Practices. Unity;
2. test:
Code
Code highlighting produced by
Due to the needs of a customer friend, need my WinForm development framework to support the operation of the national Dream database, this database has been heard very early, but the real general project with very little, generally in some special projects may need to use. Since my WinForm development framework is based on the implementation of the data access layer of Enterprise Library, it is easy to add
Due to the needs of a customer friend, need my WinForm development framework to support the operation of the national Dream database, this database has been heard very early, but the real general project with very little, generally in some special projects may need to use. Since my WinForm development framework is based on the implementation of the data access layer of Enterprise Library, it is easy to add
Article Title: Microsoft releases server virtual technology to support Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Microsoft may release Hyper-V Server virtual technology two months in advance.
Microsoft has just released the latest version of the Linux integration service. Many new features are added to the Linux support on Hyper-V, especially:
· In Linux, each virtual machine supports four vcpus· A Time Synchronization component provides the same time synchronization function as Windows virtual machines.· A closed integration component allows users to directly close Linux virtual machines throu
Microsoft Hyper-V Project Manager BenArmstrong announced in a blog that they "will expand the release support scope, including RedHatEnterpriseLinux/CentOS5.5 and RedHatEnterpriseLinux/CentOS5.6 ." He added that the software package "brings the features that people dream of, such as dynamic memory, dynamic Virtual Machine backup to the old RHEL version ." The Linux integration service is a driver package th
Http://dotnet.chinaitlab.com/ASPNET/815224.html
Microsoft Official information: HTTP://WWW.ASP.NET/AJAXLIBRARY/CDN.ASHX
Microsoft has launched a new AJAX tool: an AJAX CDN. This tool was launched by Microsoft's ASP.net team for Ajax caching support. Want to know some of the details of the Ajax CDN. Then look at Scott Gu's introduction to it.
Earlier today, ASP.
Sina Science and technology news Beijing time of May 17 morning, Microsoft announced today, will be based on the blink engine Google Chrome browser to provide Web site standards pointer events support. Microsoft hopes this will enable Chrome browser to allow the touch screen, mouse, electronic pen and other input devices to access the site.
Pointer events is a n
January 24, 2015, 9:32 pm-Microsoft this week showed new changes to the Windows 101 series, including the first public display of the Windows 10 Mobile version, but the ARM tablet did not get much mention.and Microsoft officially confirms that the Windows RT operating system that drives the ARM tablet will only have "special updates for some Windows 10 features", meaning that existing surface RT and Surface
In fact, this problem was submitted to Microsoft technical support on June 13,. However, until today, there is no perfect result for this problem (their best advice is to parse the XML file by yourself ), I had to ask Microsoft's technical support to close the problem.
The key to the problem is: 1. Currently, the simplified framework does not
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.