Per Call mode of Instance Management in WCF not working
===

I have done a fairly simple sample to demonstrate Per Call mode of Instance Management.
I have used a static variable counter to increment the count for each instance and I have assigned the instance mode as perCall. The expected behavior of the count variable should the value should not get incremented, as the instance is disposed as for every request, But the observed behavior is that the counter variable is incremented continuously for every request and even for new clients.
     This is my Service Code

namespace PerCallInstanceService 
{
    [ServiceContract]
    public interface IMyService 
    {
        [OperationContract]
        int MyMethod();
    
    }
}



namespace PerCallInstanceService 
{
    [ServiceBehavior(InstanceContextMode=InstanceContextMode.PerSession)]
    public class MyService :IMyService
    {
        public int m_Counter=0;

        #region IMyService Members

		public int MyMethod()
        {
           m_Counter++;
           return m_Counter;
        }


        #endregion
    }
}

This is the Client Side Code.

 Console.WriteLine("Service Instance mode: Per-Call");

 Console.WriteLine("Client  making call to service...");

 MyServiceClient proxy = new MyServiceClient();

 Console.WriteLine("Counter:" + proxy.MyMethod());

 Console.WriteLine("Counter:" + proxy.MyMethod());

 Console.WriteLine("Counter:" + proxy.MyMethod());

 Console.WriteLine("Counter:" + proxy.MyMethod());

 Console.ReadLine();










