Getting the error when the Thread or Timer methods not used in WCF

Posted by Varaprasadm.84 under WCF on 10/8/2012 | Points: 10 | Views : 3117 | Status : [Member] | Replies : 0
In my WCF Application if i am not using the Thread or Timer events i am not getting any result i am getting the run time error.

static void Main(string[] args)
{
while (true)
{
Console.WriteLine("testing");
ServiceClient svcclient = new ServiceClient();
Console.WriteLine(svcclient.GetCount());
Console.WriteLine("tested");
svcclient.Close();
Thread.Sleep(1500);
}

}


How can i achieve it with out using the Thread or timer to run the SP continously.

Regards,

Prasad

Vara Prasad.M


Responses

(No response found.)

Login to post response