This project has moved and is read-only. For the latest updates, please go here.

WCF interface contract?

Dec 7, 2009 at 3:58 PM


I'm in internship and I have to get information and try WCF Load test. I have done all the labs, and read lot of articles about it, but what i want to know is how is it possible to use a WCF interface contract with wcf load test? (As said in the usage notes purpose : "This tool takes a WCF or Fiddler2 trace file and a WCF client proxy, or a WCF interface contract, and generates a unit test that replays the same sequence of calls found in the trace file for WCF and ASMX services.")


P.S: sorry for the english, i'm french...

Dec 7, 2009 at 8:15 PM

This is just about how you generate your proxy. You can either create one at design time using svcutil, or you can generate the proxy at runtime by giving the channel factory the type of the interface using code like this:

System.ServiceModel.ChannelFactory<Contracts.IArithmetic> arithmeticFactory = new System.ServiceModel.ChannelFactory<Contracts.IArithmetic>("Arithmetic");



Robert Jarratt

Senior Consultant

Microsoft Consulting Services

Microsoft Ltd.

Tel.: +44 (118) 909 4923

This email may contain confidential information. If you are not named on the addressee list, please take no action in relation to this email, do not open any attachment, and please contact the sender (details above) immediately.

Information in this email is provided in good faith. If you are a customer of Microsoft, please refer to the terms and conditions which cover the provision of support and consulting services to you/your organization. If you are not corresponding in the course of, or in connection with a Microsoft contract or programme with its own terms and conditions, please note that no liability is accepted by Microsoft for the contents of this mail.

Microsoft Limited (company number 01624297) is a company registered in England and Wales whose registered office is at Microsoft Campus, Thames Valley Park, Reading. RG6 1WG

Dec 8, 2009 at 1:24 PM

Ok, thank you for the explanation. :)