private void SetupContext()
{
/*
* this retry policy will introduce a greater delay if there are retries
* than the original setting of 3 retries in 3 seconds but it will then
* show up a problem with the system without the system failing completely.
*/
this.RetryPolicy = RetryPolicies.RetryExponential(
RetryPolicies.DefaultClientRetryCount, RetryPolicies.DefaultClientBackoff);
// don't throw a DataServiceRequestException when a row doesn't exist.
this.IgnoreResourceNotFoundException = true;
}