Click here to Skip to main content
15,886,199 members
Articles / Web Development / ASP.NET

How to Build Flexible and Reusable WCF Services

Rate me:
Please Sign up or sign in to vote.
4.85/5 (13 votes)
6 May 2013GPL313 min read 77.1K   1.9K   126  
Design Patterns and best practices for building flexible and reusable WCF services.
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProductVersion>8.0.50727</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{FFB478FD-F4FE-4F64-A9AF-B529CC005277}</ProjectGuid>
    <ProjectTypeGuids>{A1591282-1198-4647-A2B1-27E5FF5F6F3B};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
    <OutputType>Library</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>Xomega.Framework</RootNamespace>
    <AssemblyName>Xomega.Framework</AssemblyName>
    <TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
    <SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
    <SilverlightApplication>false</SilverlightApplication>
    <ValidateXaml>true</ValidateXaml>
    <ThrowErrorsInValidation>true</ThrowErrorsInValidation>
  </PropertyGroup>
  <!-- This property group is only here to support building this project using the 
       MSBuild 3.5 toolset. In order to work correctly with this older toolset, it needs 
       to set the TargetFrameworkVersion to v3.5 -->
  <PropertyGroup Condition="'$(MSBuildToolsVersion)' == '3.5'">
    <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>bin\Debug\sl4\</OutputPath>
    <DefineConstants>DEBUG;TRACE;SILVERLIGHT</DefineConstants>
    <NoStdLib>true</NoStdLib>
    <NoConfig>true</NoConfig>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
    <DocumentationFile>bin\Debug\sl4\Xomega.Framework.xml</DocumentationFile>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugType>none</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>pkg\rel\sl4\</OutputPath>
    <DefineConstants>TRACE;SILVERLIGHT</DefineConstants>
    <NoStdLib>true</NoStdLib>
    <NoConfig>true</NoConfig>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
    <DocumentationFile>pkg\lib\sl4\Xomega.Framework.XML</DocumentationFile>
  </PropertyGroup>
  <PropertyGroup>
    <SignAssembly>false</SignAssembly>
  </PropertyGroup>
  <PropertyGroup>
    <AssemblyOriginatorKeyFile>
    </AssemblyOriginatorKeyFile>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="mscorlib">
      <Private>True</Private>
    </Reference>
    <Reference Include="System.ComponentModel.DataAnnotations, Version=2.0.5.0, Culture=neutral, PublicKeyToken=ddd0da4d3e678217, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <Private>True</Private>
    </Reference>
    <Reference Include="System.Runtime.Serialization">
      <Private>True</Private>
    </Reference>
    <Reference Include="System.ServiceModel">
      <Private>True</Private>
    </Reference>
    <Reference Include="System.Windows">
      <Private>True</Private>
    </Reference>
    <Reference Include="system">
      <Private>True</Private>
    </Reference>
    <Reference Include="System.Core">
      <Private>True</Private>
    </Reference>
    <Reference Include="System.Xml">
      <Private>True</Private>
    </Reference>
    <Reference Include="System.Net">
      <Private>True</Private>
    </Reference>
    <Reference Include="System.Windows.Browser">
      <Private>True</Private>
    </Reference>
    <Reference Include="System.Xml.Linq, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <Private>True</Private>
    </Reference>
  </ItemGroup>
  <ItemGroup>
    <Compile Include="Binding\BasePropertyBinding.cs" />
    <Compile Include="Binding\DataPropertyBinding.cs" />
    <Compile Include="Binding\DataPropertyItemBinding.cs" />
    <Compile Include="Binding\DependencyProperties.cs" />
    <Compile Include="Binding\SelectorPropertyBinding.cs" />
    <Compile Include="Binding\TextBlockPropertyBinding.cs" />
    <Compile Include="Binding\TextBoxPropertyBinding.cs" />
    <Compile Include="Binding\ToggleButtonPropertyBinding.cs" />
    <Compile Include="Binding\ValueConverters.cs" />
    <Compile Include="DataObjects\DataObject.cs" />
    <Compile Include="DataObjects\DataObjectList.cs" />
    <Compile Include="DataObjects\IDataObject.cs" />
    <Compile Include="DataObjects\IValidatable.cs" />
    <Compile Include="DataObjects\ListSortCriteria.cs" />
    <Compile Include="DataProperties\BaseProperty.cs" />
    <Compile Include="DataProperties\BooleanProperty.cs" />
    <Compile Include="DataProperties\ComboProperty.cs" />
    <Compile Include="DataProperties\DataProperty.cs" />
    <Compile Include="DataProperties\DateTimeProperty.cs" />
    <Compile Include="DataProperties\DecimalProperty.cs" />
    <Compile Include="DataProperties\EnumGuidProperty.cs" />
    <Compile Include="DataProperties\EnumIntProperty.cs" />
    <Compile Include="DataProperties\EnumProperty.cs" />
    <Compile Include="DataProperties\GenericDataProperty.cs" />
    <Compile Include="DataProperties\GuidProperty.cs" />
    <Compile Include="DataProperties\IntegerProperty.cs" />
    <Compile Include="DataProperties\MoneyProperty.cs" />
    <Compile Include="DataProperties\OperatorProperty.cs" />
    <Compile Include="DataProperties\PropertyChange.cs" />
    <Compile Include="DataProperties\TextProperty.cs" />
    <Compile Include="DataProperties\ValueFormat.cs" />
    <Compile Include="ErrorList.cs" />
    <Compile Include="ErrorMessage.cs" />
    <Compile Include="Lookup\Header.cs" />
    <Compile Include="Lookup\LookupCache.cs" />
    <Compile Include="Lookup\LookupCacheLoader.cs" />
    <Compile Include="Lookup\LookupCacheProvider.cs" />
    <Compile Include="Lookup\LookupTable.cs" />
    <Compile Include="Lookup\XmlLookupCacheLoader.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
    <Compile Include="Services\IServiceBase.cs" />
    <Compile Include="Silverlight\ClientSessionManager.cs" />
  </ItemGroup>
  <Import Project="$(MSBuildExtensionsPath32)\Microsoft\Silverlight\$(SilverlightVersion)\Microsoft.Silverlight.CSharp.targets" />
  <ProjectExtensions>
    <VisualStudio>
      <FlavorProperties GUID="{A1591282-1198-4647-A2B1-27E5FF5F6F3B}">
        <SilverlightProjectProperties />
      </FlavorProperties>
    </VisualStudio>
  </ProjectExtensions>
  <PropertyGroup>
    <PostBuildEvent>cd "$(ProjectDir)"
instrument.bat $(ConfigurationName) "$(DevEnvDir)" $(OutDir) $(TargetFileName)</PostBuildEvent>
  </PropertyGroup>
  <PropertyGroup>
    <PreBuildEvent>xcopy /Y "$(DevEnvDir)..\..\..\Reference Assemblies\Microsoft\Framework\Silverlight\v4.0\System.Core.dll" $(TargetDir)</PreBuildEvent>
  </PropertyGroup>
  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
       Other similar extension points exist, see Microsoft.Common.targets.
  <Target Name="BeforeBuild">
  </Target>
  <Target Name="AfterBuild">
  </Target>
  -->
</Project>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The GNU General Public License (GPLv3)


Written By
Architect Xomega.Net
United States United States
Xomega Team is striving to increase productivity and development quality by utilizing Model Driven Development coupled with Code Generation and the best design practices for application development.
We provide MDD tools, code generators and frameworks for Visual Studio and .Net development.
Visit us at http://www.xomega.net
This is a Organisation

1 members

Comments and Discussions