Back to the Future - Summary of my lecture at Tech-Ed Eilat
For all of you who have been at my lecture I hope that you enjoyed and that you have learned few new things, If you didn't get my message, here is a summary:
- Think about the future, the present is the past of the future.
- Invest in the architecture.
- Decoupling is the name of the game, always was and always will be.
- Know your framework roadmap.
- New technologies make decoupling easier.
- Using WCF interoperabilities lets you re-use old code component
- Using WCF interoperabilities lets you use WCF based service as a component
- Porting ASP.NET ASMX based web services is easy
- Porting Remoting to WCF may be a little bit harder
The setup of the demo solution:
- On Vista: If UAC is enabled, run VS2008 under the Administrator's credentials
- Install the databases using the provided teched2008.sql script. This installs three databases, one for the ATL based bank, one for the EnterpriseServices based bank, and one for the WCF IMax ticket ordering service.
- The Banks' Databases need some valid accounts, add a client to the CPPBank and a business account to the ESBank.
- On Vista: To host the service in a process that is not run under admin, you need to execute the CounfigureNetwork.bat batch file (under admin rights)
- Open the solution, Select the target architecture (x64 or x86) and build it. (The x64 version is fully tested, the x86 may need some tweaks in the post build actions)
- After (any time you do it) you reregister one of the COM+ application to the COM+ Catalog, you need to configure the COM+ service. Use the addresses from the endpoint addresses.txt file, otherwise you will have to update the service references of the WCF clients.
The solution:
The UI:
Activate the Services and place an order. To use the WF, check the "Use WF" and activate the host.
You can download the presentation from here, and the code from here.
I will be more than happy to get your feedbacks.
Enjoy!