Esempio n. 1
0
 /// <summary>
 ///
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="receiveParam"></param>
 /// <param name="dataList"></param>
 /// <returns></returns>
 public bool TryReceiveData <T>(TransReceiveParam receiveParam, out List <T> dataList) where T : AbstractEntity, new()
 {
     using (IDataReceiver getter = new RedisDataGetter(receiveParam.RedisKey, receiveParam.Schema))
     {
         return(getter.TryReceive <T>(out dataList));
     }
 }
Esempio n. 2
0
 /// <summary>
 ///
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="receiveParam"></param>
 /// <param name="dataList"></param>
 /// <returns></returns>
 public bool TryReceiveData <T>(TransReceiveParam receiveParam, out List <T> dataList) where T : AbstractEntity, new()
 {
     dataList = new List <T>();
     return(true);
     //using (IDataReceiver getter = new SqlDataReceiver(receiveParam.Schema, receiveParam.DbFilter))
     //{
     //    return getter.TryReceive<T>(out dataList);
     //}
 }