Skip to content

Instantly share code, notes, and snippets.

@musoftware
Created October 30, 2015 21:50
Show Gist options
  • Select an option

  • Save musoftware/76ff78552c6fba7533eb to your computer and use it in GitHub Desktop.

Select an option

Save musoftware/76ff78552c6fba7533eb to your computer and use it in GitHub Desktop.
Use WCF Service ON Dll file
var binding = new WSHttpBinding();
binding.SendTimeout = new TimeSpan(0, 0, 0, 0, 100000);
binding.OpenTimeout = new TimeSpan(0, 0, 0, 0, 100000);
binding.MaxReceivedMessageSize = 10000;
binding.ReaderQuotas.MaxStringContentLength = 10000;
binding.ReaderQuotas.MaxDepth = 10000;
binding.ReaderQuotas.MaxArrayLength = 10000;
var endpoint = new EndpointAddress("http://localhost:57102/MyService.svc");
var myClient = new WebServiceclient(binding, endpoint);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment