Click here to Skip to main content
15,896,201 members
Articles / Desktop Programming / WPF

Extending WCF - Part II

Rate me:
Please Sign up or sign in to vote.
4.96/5 (39 votes)
21 Jan 2010CPOL4 min read 114.8K   2.5K   71  
An article on using compression/decompression of WCF data
/**
 * File name: WcfClientHelper.cs 
 * Author: Mosfiqur.Rahman
 * Date: 11/1/2009 4:14:51 PM format: MM/dd/yyyy
 * 
 * 
 * Modification history:
 * Name				Date					Desc
 * 
 *  
 * Version: 1.0
 * */

#region Using Directives

#endregion

namespace WcfExtensions
{
    /// <summary>
    /// Summary of this class.
    /// </summary>
    public class WcfClientHelper
    {
        #region Member Variables

        #endregion

        #region Constructors

        #endregion

        #region Properties

        #endregion

        #region Methods

        public static T GetProxy<T>(string externalConfigPath)
        {
            var channelFactory = new ExtendedChannelFactory<T>(externalConfigPath);
            channelFactory.Open();
            return channelFactory.CreateChannel();
        }

        #endregion
    }
}

// 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