Professional Visual Studio 2005 Team System (Programmer to Programmer)

Initially, the toolbox contains pre-configured reusable application and endpoint prototypes for common applications such as Web services, web applications, Windows applications, and external databases (see Figure 2-1). Your list might not be exactly the same as the one shown in Figure 2-1; and you can add new prototypes to the toolbox yourself, as you'll see later.

image from book Figure 2-1

So that you're familiar with those prototypes as you encounter them, we'll provide a brief description of each one. Our descriptions are arranged into three sets: General Designer, Endpoints, and Applications to match the layout of the toolbox shown in Figure 2-1.

General Designer

The items in this section are not really "prototypes" at all, but "tools." We list them here as items within the same toolbox:

You will have noticed one toolbox item that is listed in every section of the toolbox, yet we've not listed it as a bulleted point. That is the Pointer tool, which merely deselects whichever prototype or tool the mouse cursor is currently set to and reverts it back to a regular mouse cursor with which you can select items on the diagram.

Endpoints

Endpoints of the various types exist in two flavors: provider endpoints and consumer endpoints. The toolbox enables you to drag provider endpoints onto applications, to which you can connect clients via corresponding consumer endpoints (although you never add consumer endpoints directly; they are created for you when you connect an application to a provider endpoint):

Note

Connections on the Application Definition represent the configuration of the applications in your solution. Once you have implemented an application with a consumer endpoint, changing the connection will change the corresponding configuration entry in the applications configuration file. Deleting a connection but not the consumer endpoint will blank that configuration entry, and reconnecting an endpoint will set it to the appropriate value. Configurability of endpoints is the key to making applications configurable on deployment. You should not create hard-coded connections between applications or databases. If you hard-code connections, by and large, these will not appear at all on the Application Definition.

Applications

This section of the toolbox contains a set of application prototypes that define specific application types. In addition to the predefined types detailed in the following list, you'll see later how you can define your own application prototypes and add them to the toolbox:

Категории