Click here to Skip to main content
15,886,026 members
Articles / Desktop Programming / WPF

Extending WCF Part I

Rate me:
Please Sign up or sign in to vote.
4.80/5 (30 votes)
7 Nov 2009CPOL5 min read 85.7K   2.2K   87  
An article on using external configuration file at WCF client
/**
 * File name: ExtendedServiceHostFactory.cs 
 * Author: Mosfiqur.Rahman
 * Date: 11/3/2009 1:27:33 PM format: MM/dd/yyyy
 * 
 * 
 * Modification history:
 * Name				Date					Desc
 * 
 *  
 * Version: 1.0
 * */

#region Using Directives

using System;
using System.ServiceModel.Activation;
using System.ServiceModel;

#endregion

namespace ExtendingWCFPartI.WcfExtentions
{
    /// <summary>
    /// Summary of this class.
    /// </summary>
    public class ExtendedServiceHostFactory:ServiceHostFactory
    {
        #region Methods

        protected override ServiceHost CreateServiceHost(Type serviceType, Uri[] baseAddresses)
        {
            return new ServiceHost(serviceType, baseAddresses);
        }

        #endregion

    }// end of class
}// end of namespace

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
Web Developer KAZ Software Limited
Bangladesh Bangladesh

Comments and Discussions