Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7579021
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T17:34:21+00:00 2026-05-30T17:34:21+00:00

Do Svcutil generated proxies give better performance over ChannelFactory used at runtime? Does ChannelFactory

  • 0

Do Svcutil generated proxies give better performance over ChannelFactory used at runtime? Does ChannelFactory cache proxy by default?

I am using .NET 4 with a service which has more than 100 operations and more than 500 data contracts participating in it.

When I use ChannelFactory<T>, it takes a really long time to return me the proxy. Can one suggest which is the best way to create a proxy?

My code looks like this:

EndpointAddress endPoint = new EndpointAddress(url);
// My own API which gives the custom binding I create programatically
CustomBinding binding = BindingFactory.GetCustomBinding("WSECustomBinding");
ChannelFactory<T> factory = new ChannelFactory<T>(binding, endPoint);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T17:34:22+00:00Added an answer on May 30, 2026 at 5:34 pm

    When you generate code with Svcutil, you get a class extending ClientBase, which is a wrapper for ChannelFactory.

    Svcutil proxies allow you to invoke the service as methods on objects instead of interacting directly with ChannelFactories/Channels and apart that, do offer some extra functionality, like caching channel factories, but under the hood it’s the same engine.

    It’s not clear from your code what you are doing, but are you creating the ChannelFactory on each operation call? Creation of ChannelFactory is expensive and you usually cache that instance to then use it to open, make use of, then close Channels for operation calls.

    See the following pages for more detailed explanations:

    • Performance Improvement for WCF Client Proxy Creation in .NET 3.5 and Best Practices
    • Best Practice: Always open WCF client proxy explicitly when it is shared
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

At the client end, I have generated a Proxy using SvcUtil.exe and it is
I have a service proxy generated by svcutil which generated an interface(IStudentContract) and a
I'm using svcutil to generate proxy code for the following web service endpoint which
I'm using the svcutil tool to generate a set of proxies for a 3rd
I am using svcutil to generate a proxy file for use against a service
I have a public interface auto-generated bu svcutil: [System.ServiceModel.ServiceContractAttribute(Namespace=..., ConfigurationName=...)] public interface MyInterface Then
When using svcutil.exe, I noticed this switch, /tcv:Version35. The docs says this: Version35: Use
I'm using the LanguageService (translation service) from Bing. I generated the F# soap client
There's lots of material explaining why using svcutil.exe (or 'add service reference') is bad
We have some code that was generated, mostly likely by svcutil from an XML

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.