Click here to Skip to main content
15,885,278 members
Articles / Programming Languages / XML

WCF Throttling

Rate me:
Please Sign up or sign in to vote.
4.91/5 (40 votes)
13 Feb 2009CPOL9 min read 160.4K   6.1K   71  
WCF thottling is about more than just the throttling options.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.Threading;

namespace WCFThrottling
{
    public class Service1 : IService1
    {
        Guid sessionGuid = Guid.NewGuid();

        public Guid Ping()
        {
            Thread.Sleep(1*1000);
            return sessionGuid;
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United Kingdom United Kingdom
Chris is a full time software developer in London, UK.
He has a BSc in computer science and is busy taking courses in the MCTS stream.

Comments and Discussions