Exemplo 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))
     {
         return(getter.TryReceive <T>(out dataList));
     }
 }
Exemplo 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()
 {
     using (IDataReceiver getter = new SqlDataReceiver(receiveParam.Schema, receiveParam.DbFilter))
     {
         return(getter.TryReceive <T>(out dataList));
     }
 }