Detailed explanation. NET's RAD function

xiaoxiao2021-03-06  87

Author: China Computer News

Visual Studio.net has developers to build all the development tools required for success and powerful intermediate applications, using these tools, developers:

1. Guarantee message propagation and use Microsoft Message Queue (MSMQ) cross-platform communication;

2. Record the application's error message to the shared application event log, and you can set a component to wake up pre-defined tasks;

3. You can know the performance characteristics of any computer in the network;

4. Components that can be woken up and executed when the file system changes;

5. Drag and drop the function module directly to the application.

Make developers focus on business problems instead of cumbersome labor.

Below, let us know how to understand several aspects developed by RAD:

Server browser

Write an intermediate layer to find what kind of service can be provided on the enterprise network. This is a very big challenge when developing, even if we find it, we are also difficult to integrate into the application.

In Visual Studio.NET, server browser (Server Explorer) can display information on the entire computer, including database, message queue, and all installed server basic elements.

You can add resources from Server Explorer to the Visual Studio designer. When you add a resource to your designer, Visual Studio will automatically establish a component with reference to your own resource.

Like the Form Designer, Server Explorer also provides a fast, graphical way to create a server-side component. The component designer will reference the form-based fast application development concept to establish an intermediate layer object, ie, using a visualized manner to build an invisible component. We don't have to write a large number of server-side encodings, just use the drag and drop server components to design the server's framework, and link it and the property browser, double-click it to open the code of this object.

Server resources

With server resources, we can achieve the following features:

Guarantee message communication and cross-platform communication

Microsoft Message Queue (MSMQ) allows developers to easily send and receive messages quickly, reliably and asynchronously between applications.

Developers need to be able to send and accept messages, create and delete message queues and manage these queues, and in Visual Studio.NET, Server Explorer and MSMQ components can simplify these tasks.

By dragging a message queue from Server Explorer to a component, the default value of message queues and messages allows developers to send or receive a simple message with a row code.

During the Visual Studio.net MSMQ programming process, developers have two options:

1. When sending a message, you need to bind a message and message queue together. This object allows developers and queues to talk directly to send messages as efficiently as possible.

2. Before starting programming, simply drag an existing queue to a component or build, delete, or rename queues in Visual Studio.

After selecting one of the two options, the next step is to provide the data to be sent. The user can call the message queue's Send method, and the data will be sent to the specified queue.

DIM MQ As New MessageQueue ("// mymachine / queue1") mq.send "this is the message" mq.send 7 mq.send myorder

The message queue component will get data from the parameter, saved in the message and sends the message to the specified queue.

Record the application's error message to the shared application event log

Event logs provide standard, centralized ways for Windows and application records important software and hardware events.

In Visual Studio.NET, developers can drag an event log from Server Explorer to a component, then write code for different applications to read and write event logs. At the time point of the booking, the time-based task wake-up component is very important for enterprise users at a scheduled time. The business development needs to have progress, the workbook needs to be closed at the end of every working day, and the audit is performed monthly, and the detailed report every morning should be used for analysis, which are arranged for the task to automatically run the task.

Now, Visual Studio allows you to create applications and components to automatically run in advance in advance.

Performance characteristics of any computer in the network

Performance Monitor is a process that captures and analyzes performance data, which determines where applications, service, and driver performance bottlenecks, Windows 2000 and Windows NT provide methods of monitoring system performance through performance counters.

Visual Studio.net will provide a component to easily create a new counter and read and write any performance counters. When using Performance Counter components, we only need to drag it from Server Explorer to a component, and then double-click to write application code.

Establish and deploy server applications

The challenge of the company's administrators is to deploy each element of a distributed application and manage them throughout the life cycle of the program. An important task for the designer of the component developer and solution is to give the administrator and related application developers at sufficient information.

In a distributed application model, an important goal is to simply and effectively provide sufficient information to the administrator. The goal of deploying the server is to easily deliver any size and structural solutions and projects from a diversity platform to another. Visual Studio.net can perform these configurations through a variety of platforms and computers. It can be deployed multiple layers (for example, can be deployed to one target machine) or simply deployed to the web server and COM server.

Establish a multi-level installer

Many developers want to install all three-layer system deployed a distributed application. A new deployment installation tool will be provided in the next version of Visual Studio that uses it to easily deploy multi-layer applications.

Establish server resources in deployment using custom installer

The application service of the intermediate layer has its own independence. For example, a developer has created a component, dragging a message queue through a toolbar, and the message queue exists on the developer's computer. However, when the program is released, if the message queue does not exist, this message queue needs to be established. Visual Studio.net includes a custom installer to ensure that the server-based resource is created.

Debugging the deployed program with real-time tracker

Tracking is an application that allows developers to adjust guidance. This adjustment guidance allows developers and managers to monitor the status of deploying applications, this is different from Debugger, sometimes Debugger hides errors, dilutes performance and thread problems. Real-time trackers in Visual Studio.NET are an important monitoring commissioning tool in distributed and multi-layer applications that can find issues that the application generated when the application is high load or disorderly environmental state.

When establishing a web application, there is a very common problem that how to change the behavior of the application without closing the site.

Visual Studio.net provides dynamic properties that can change application behavior after application deployment. These attribute values ​​are not written in the code, but read by the Extended Markup Language (XML) file. Developers can easily modify these files to change the behavior of the application without rewriting, compiling, and deploying new code.

Dynamic attribute values ​​can be changed after the application deployment, you can use Visual Studio.NET built-in editor or to edit these attribute values ​​like a notepad, connecting the database's Connection String is an example. If you put the connect string in the application, when the application moves from the development environment to the test environment, developers need to recompile this application if this property is dynamized, and this Connection String can be modified after the application deployment. Then, when the application is running, the new value will be used, connect the application to another database, do not need to change the source code, and the dynamic properties set can be shared by multiple attributes in a project. Visual Studio.net provides a mechanism for looking for XML network services, databases, messages, event logs, performance counters, and other server resources in a corporate network. In addition, it also provides developers to program easily by dragging server resources, which means that Visual Studio.NET makes the server quickly become possible.

转载请注明原文地址:https://www.9cbs.com/read-98541.html

New Post(0)