Beispiel #1
0
 private void PutToChangeKeys(AbstractEntity entity)
 {
     if (!IsModifying)
     {
         DataSyncQueueManager.Send(entity);
     }
 }
Beispiel #2
0
 private void PutToChangeKeys(AbstractEntity entity)
 {
     if (!IsModifying)
     {
         //Auto trigger modify event
         ProfileManager.ChangeEntityByAutoOfMessageQueueTimes(entity.GetType().FullName, entity.GetKeyCode());
         DataSyncQueueManager.Send(entity);
     }
 }
 /// <summary>
 /// 尝试发送数据
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="dataList"></param>
 /// <param name="sendParam"></param>
 public void SendData <T>(T[] dataList, TransSendParam sendParam) where T : AbstractEntity, new()
 {
     //modify reason:提交到Redis同步队列处理
     DataSyncQueueManager.Send(dataList);
     //if (!sendParam.OnlyRedis)
     //{
     //    _dbTransponder.SendData(dataList, sendParam);
     //}
     //_redisTransponder.SendData(dataList, sendParam);
 }