Wednesday, February 9, 2011

WCF Service Library: a Good Approach for WCF Service Application - CodeProject

The Microsoft Visual Studio .NET logo.Image via WikipediaIntroduction to article

When create WCF projects, it is a good architectural approach to put all of the actual implementation into a WCF library, then use this library in a separate WCF service application project or in a non-WCF project. As such, the WCF library can be reused in many other places either due to regular class references from another non-WCF library/project, or due to different WCF deployment strategies either by web service in IIS, by windows service, or by command line launching. This article first introduces some simple steps to use a WCF service library in a WCF web service application. Later in the discussion section, it elaborates the reasons for doing so.
The effort of this article is to try to promote this seemly-simple but really overlooked good approach. For most of developers, this seemly-simple approach is always ignored. For all of the existing WCF web applications I met, I rarely saw one which is implemented with the WCF library approach. After read the elaborated and detailed reasons of using WCF library in the discussion section of this article, hopefully developers will become serious about this approach and use it thereafter.
The auto-generated code from the Visual Studio 2010 template will be used as the sample code with minimal modification so that readers can easily reproduce them.


WCF Service Library: a Good Approach for WCF Service Application - CodeProject
Enhanced by Zemanta

No comments: