An Overview of the Simplified Application Framework - Testing Projects for SAF
(Page 7 of 7 )
Each of the twelve framework components in SAF is accompanied by an executable C# project that demonstrates the purpose of the framework component as well as how the component can be used in the application. After reading each chapter, I encourage you to load the testing project into VS.NET and test it out. You will also find a “code walkthrough” section on the key code segments as I talk about each framework component, but nothing better explains the code than running it through debug mode and stepping into each line of code to see exactly what is happening behind the cover. The source code for each framework component is located in an appropriately named folder. For example, source code for the SAF.ClassFactory component is located in the “SAF.ClassFactory” folder. The testing project for SAF.ClassFactory is located in the “Test.SAF.ClassFactory” folder.
If you want to look at the source code of all the SAF components at once, you can load the solution file “SAF.sln” in VS.NET, which will load the entire SAF.* project into the IDE.
A Few Words About the SAF Source Code SAF was created as a companion to the book. I created SAF to show you different services you can develop in an application framework and to use it as an example of a framework implementation that shows different .NET technologies and design patterns that you can leverage when developing your own frameworks. I have tried to keep the code as concise as possible so that it is easy to read and understand. I omitted a lot of code for exception handling, thread safety, and various validations that would normally be required for an application in a production environment. SAF is intended for educational purposes and not for actual production use. However, you are welcome to use SAF as a starting point and modify it to fit your particular scenario. There is no restriction on how you can use and modify the SAF source code provided with this book.
Summary In this chapter we have presented a brief overview of SAF, describing its purpose and architecture and how it can be used to build a customized application. We also looked at each individual component inside SAF. Through a brief introduction to the ten cross-domain framework components and two domain-specific framework components, you have learned about the idea behind each component and its added values, as well as the .NET technologies and design patterns involved in these components. In the next chapter, we will look at the first component of SAF: the ClassFactory service.
This chapter is from Developing Application Frameworks in .NET by Xin Chen (Apress, 2004, ISBN: 1590592883). Check it out at your favorite bookstore today. Buy this book now.
|
| DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware. |