I have a Windows application that connects to a WCF data service hosted on the same machine.
The first thing that happens when the application starts is a query that returns from 0 to 3 results. Here is the code:
var environments = ctx.Environments .AddQueryOption("$filter", "Environment eq '" + ConfigurationManager.AppSettings["environment"] + "'") .AddQueryOption("$expand", "Departments, SecurityGroups");
The next thing I do is check if (environment.Count () == 0), which takes about 10 seconds to evaluate. This seems to be the slowest for the first time, but always takes more than 6 seconds. However, if I run Fiddler, I always get the results right away.
Why is Fiddler launching accelerated?
c # wcf-data-services fiddler
Darlom
source share