Skip to content

Instantly share code, notes, and snippets.

@PatrickKalkman
Created February 27, 2019 13:02
Show Gist options
  • Save PatrickKalkman/8f4121b96f144cfc0b0b10a5c988fd0b to your computer and use it in GitHub Desktop.
Save PatrickKalkman/8f4121b96f144cfc0b0b10a5c988fd0b to your computer and use it in GitHub Desktop.
public static class Configuration
{
public static Binding CreateBinding()
{
NetTcpBinding binding = new NetTcpBinding();
binding.MaxReceivedMessageSize = 25 * 1024 * 1024;
binding.ReceiveTimeout = new TimeSpan(0, 2, 0);
return new NetTcpBinding();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment