Csharp Code Samples

Rohan’s Blog – C# .NET Programming
  • rss
  • Home
  • About
  • Search
  • Contact Me

Configuring WCF Throttling Behaviors

Rohan Warang | April 27, 2009

Most WCF services hosted in a live environment if not configured for handling heavy simultaneous requests give a Denial of Service Error, better known as DoS attacks. To prevent these from happening we have to configure the throttling behavior and some attributes of the ServiceHost.

Read the rest of this entry »

Comments
2 Comments »
Categories
Optimization
Tags
Behavior, Microsoft, Throttling, WCF
Comments rss Comments rss
Trackback Trackback

Data Transfer Using Self Hosted WCF Service

Rohan Warang | February 18, 2009

Traditionally services are hosted in IIS. This article describes a method of self hosting and consuming a WCF service without the use of IIS.

The WCF service is declared and configured programmatically i.e without the use of configuration files. Most people would not advice hosting services programmatically. But I believe it is the most compact and easiest way of hosting a WCF service.

I have used two console application one to host the service and second to consume it. The host application demonstrates the use of properly configured self hosted WCF service to transfer large amount of data. However this configuration is not confined to self hosted services it can be applied to any WCF service to improve its performance.

Read the rest of this entry »

Comments
17 Comments »
Categories
Optimization
Tags
Microsoft, Volume, WCF
Comments rss Comments rss
Trackback Trackback

Subscribe

dZone

Categories

  • Optimization
  • Tutorials

Admin

  • Log in
Creative Commons License rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox