Developing Application Blocks and Providers

Developing Application Blocks and Providers

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

The latest Enterprise Library information can be found at the Enterprise Library site.

This topic describes the common activities that developers perform when creating Enterprise Library application blocks and providers. These activities include:

Each of these activities is a recipe that has a wizard associated with it. The wizards lead you through the steps of the recipes and gather the necessary values. Once you have entered all the values, the Application Block Software Factory generates the files that you need to accomplish the activity.

Completing the Generated Files

Many of the files that the Application Block Software Factory generates must be completed by you. Places where you must add code are marked by TODO comments within the code. The Visual Studio Task List displays these comments and the files where they are located. If you cannot see the Task List, click Task List in the View menu. Visual Studio only displays the comments for files that are open.

The run-time configuration files, which are stored in the run-time project’s Configuration folder, use partial classes. Partial classes allow you to split up the definition of a class into multiple source files. The Application Block Software Factory does this in order to keep the auto-generated files separate from the files that contain the TODO comments.

Many of the TODO comments suggest that you use code snippets. To access the Application Block Software Factory’s code snippets, right-click on the line where the snippet will go, click Insert Snippet, double-click on Application Block Software Factory, and double-click on the appropriate snippet.

Once you have completed all the steps for the run-time and design-time projects you can see your application block and providers in the configuration tools.

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

The latest Enterprise Library information can be found at the Enterprise Library site.
Show:
© 2016 Microsoft