Click here to Skip to main content
15,892,298 members
Articles / Web Development / IIS

WCF by Example - Introduction

Rate me:
Please Sign up or sign in to vote.
4.91/5 (83 votes)
28 May 2013CPOL9 min read 445.2K   1.3K   532  
Patterns and best practices for the desing and development of rich client enterprise applications using WPF, WCF and NHibernate
<?xml version="1.0" encoding="utf-8" ?>
<!--
  NHibernate Configuration
  ========================
-->
  <objects xmlns="http://www.springframework.net">

    <!-- CLIENT SERVICE LOCATOR -->
    <object 
            id="ClientServiceLocatorRef" 
            type="eDirectory.WPF.Services.ClientServiceLocator, eDirectory.WPF"  
            factory-method="Instance" 
            singleton="true">
      
      <property name="ContractLocator" ref="ClientContractLocatorRef" />
    </object>
    
    <!-- Client Contract Locator -->
    <object 
            id="ClientContractLocatorRef" 
            type="eDirectory.WPF.Services.ClientContractLocator, eDirectory.WPF">
      
      <property name="NextAdapterLocator" ref="ContractLocatorRef" />
    </object>
    
    <!-- Next Adapter Locator -->
    <object
            id="ContractLocatorRef"
            type="eDirectory.Domain.Services.ServerContractLocator, eDirectory.Domain" />


    <!-- SERVER CONTAINER -->
    <object
        id="ServerContainerRef"
        type="eDirectory.Domain.AppServices.Container, eDirectory.Domain"
        singleton="true">

      <property name="RequestContext" ref="RequestContextRef" />
    </object>

    <!-- Request Context -->
    <object
            id="RequestContextRef"
            type="eDirectory.Naive.AppServices.RequestContextNaive, eDirectory.Naive" />
    
    <!-- Global Context -->
    <object
            id="GlobalContextRef"
            type="eDirectory.Domain.AppServices.GlobalContext, eDirectory.Domain"
            factory-method="Instance"
            singleton="true">

      <property name="TransFactory" ref="TransFactoryRef" />
    </object>

    <!-- Transaction Factory -->
    <object
            id="TransFactoryRef"
            type="eDirectory.NHibernate.TransManager.TransManagerFactoryNh, eDirectory.NHibernate">
      
      <property name="ConfigurationFileName" value="nhibernate.cfg.xml" />
    </object>

    <!-- AutoMapper -->
    <object
            id="AutoMapperConfiguratorRef"
            type="eDirectory.Domain.Entities.AutoMapperConfigurator, eDirectory.Domain"
            init-method="Install" />

    
  </objects>

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 Code Project Open License (CPOL)


Written By
Software Developer (Senior)
Ireland Ireland
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions