public IQueryable <TIinterface> CreateQuery <TIinterface, TData>(string entitySetName) { IQueryable <TIinterface> inner = (IQueryable <TIinterface>) this.CreateQuery <TData>(entitySetName); var result = new MediaQueryable <TIinterface, TData>(inner); return(result); }
public IQueryable <TIinterface> CreateQuery <TIinterface, TData>(string entitySetName) { IQueryable <TIinterface> inner = (IQueryable <TIinterface>) this.CreateQuery <TData>(entitySetName); var result = new MediaQueryable <TIinterface, TData>(inner, new MediaRetryPolicy(new QueryErrorDetectionStrategy(), new ExponentialBackoff())); return(result); }
public void QueryRetrySimple() { MediaRetryPolicy queryRetryPolicy = new TestMediaServicesClassFactory(null).GetQueryRetryPolicy(); var mock = new ThrowingQueryable(); var target = new MediaQueryable <string, string>(mock, queryRetryPolicy); Assert.AreEqual(mock.Inner.First(), target.First()); }