var odataContext = new DataServiceContext(this._odataLink); odataContext.BeginExecute<long>(new Uri("./CustomerCount", UriKind.Relative), new AsyncCallback( (result) => { if(!result.IsCompleted) return; this.ListCustomersCount = odataContext.EndExecute<long>(result).FirstOrDefault(); this.ListCustomersQuery(pageNumber); }), null);