Exemple #1
0
 /// <summary>
 /// 创建一个数据读取器
 /// </summary>
 /// <param name="dataCenterUri"></param>
 /// <returns></returns>
 public IDataReader GetDataReader(string dataCenterUri)
 {
     if (!DataStoreFactory.CheckDataStore(dataCenterUri))
     {
         return(null);
     }
     return(new DataReader(dataCenterUri));
 }
Exemple #2
0
        public static IDataReader CreateDataReader(DataCenter dataCenter)
        {
            string dataCenterUri = dataCenter.DataCenterInfo.Uri;

            if (!DataStoreFactory.CheckDataStore(dataCenterUri))
            {
                return(null);
            }
            return(new DataReader(dataCenterUri));
        }