Abstract Factory Pattern (Example)
My work requires working with Windows Communication Foundation (WCF) services daily, and I typically have two (2) types of clients, either Excel, which is the largest part of my user base, or external applications, usually server-based. This example uses the idea of two (2) client types, each requiring a different host/port combination, which the abstract factory pattern will return.
- Classes derived from abstract types
- Class creates derived (concrete) classes based on type required
Click the download button for AbstractFactoryExample.cs...