ASP. NET Enterprise Development Framework isline framework Series 3-Seven Weapons

Source: Internet
Author: User
ArticleDirectory
    • Introduction to isline framework provider
    • Dataprovider

Link

Introduction to isline framework provider

WhereIsline. Data,Isline. applogI want to focus on it, but now let's briefly talk about the role of each provider.

Dataprovider

Like other frameworks, dataprovider provides the ability for projects to interact with databases. The advantages of dataprovider are not described here. Here we only talk about the difference between dataprovider and the data access layer of other frameworks.

Dataprovider is compatible with both SQL Server and Oracle databases and provides the idboperater interface. You can provide instances for dataprovider as long as you implement the idboperater interface factory, so that you can use the third database, you do not need to modify the database call keywords. In addition, dataprovider provides two methods: static access and instance access.. Net container. You can select different methods and provide a unified dispose () method. You only need to call it once to close all readers; static calls do not need to release any resources. Static access and instantiated access are differentiated based on the connection-oriented and non-connection-oriented working methods.

Dataprovider also provides you with recordprovider, which allows you to conveniently operate. config files, text files, XML files, and so on.

Dataprovider comes with the data container option: containerdefiner. CS, using this type of instance, users can directly call various ADO objects, and the container caches, compresses, and optimizes some large data objects, these optimizations follow the "space-for-time" principle during storage and the "time-for-space" principle during transmission. The front-end business performance will be substantially improved!

Applogprovider

Applogprovider provides powerful logging functions for users.ProgramEach "log instance" in provides separate configurations. Each configuration can have different "render", and each render can use different "appender ", the appender determines the attributes of the log instance, such as the importance level, record media, record format, and layout. All of this can be done through configuration and cannot be changed.Code. In other words, if your original system logs are all recorded in text files and you want to record the logs to SQL or Oracle databases, the only thing you need to do is to change the configuration, if you need to output logs to the TV, you need to implement the iapplogprovider interface distributed by applogprovider.

If you have used log4net, you will be familiar with applogprovider, but applogprovider provides more flexible configuration methods.

Predictionprocessprovider

Exceptionprocessprovider provides the exception control function, which consists of two modules: exception record and exception display.

The exception logging module is based on applogprovider. You can pass exception instances to record exceptions. At the same time, exceptionprocessprovider supports custom exception models, which can be created together with the entire software model, the entity exception model (must inherit from exception) is used to process events and realize the exceptionprocessprovider distributed interface to implement the exception record function. The exception display module refers to the notification information displayed to users when an exception occurs. These notifications are classified into 10 types in predictionprocessprovider, you can switch between the 10 styles only through configuration.

Httpcontentprovider

Httpcontentprovider provides users with Cookie, session, and cache access methods. Through configuration files, users can control the attributes of these statuses, such as Cookie scope and sliding time, cache dependency (only SQL Server. By using these methods, you can easily create, query, delete, and update these statuses.

Islineframework

Islineframework is the core of the overall isline architecture. Before the architecture is loaded, isline. dll configures the entire architecture to complete the customization task.

Securityprovider

Securityprovider provides users with encryption and decryption, strong encryption and decryption methods. These encryption measures provide a basis for the password in the encrypted configuration file.

Taskqueueprovider

Taskqueueprovider is a service queue that you can use to register an existing service. taskqueueprovider returns an instance for you to use based on the service node elements to build a "field" Model for enterprise applications. (What is an enterprise application field? See the Enterprise Application System (field) construction solution (I) and Enterprise Application System (field) construction solution (II)

 

Figure 3.3 project composition

Here we will focus on dataprovider and applogprovider, because a large number of providers are applied in this paper.

(To be continued)

I amAicken)You are welcome to follow my next article.

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.