//BaseTablesGetter public byte[] BaseDataRequest(byte[] methodBytes) { byte[] _metBts = GZipStreamHelper.GZipDecompress(methodBytes); MethodRequest[] _metodReqs = __JsonSerial.Deserialize <MethodRequest[]>(System.Text.Encoding.UTF8.GetString(_metBts)); if (_metodReqs == null) { return(null); } ShareSqlManager _sh = new ShareSqlManager(); List <List <SimpDataEntery> > _simpEtys = new List <List <SimpDataEntery> >(); for (int _i = 0, _iCnt = _metodReqs.Length; _i < _iCnt; _i++) { List <SimpDataEntery> _lis = BaseTablesGetter.GetBaseTablesGetterInstances(_metodReqs[_i].ProceDb).GetBaseTable( MethodRequestHelper.GetParam(_metodReqs[_i], "tableName"), MethodRequestHelper.GetParam(_metodReqs[_i], "ChangTime"), MethodRequestHelper.GetParam(_metodReqs[_i], "schemaMD5"), MethodRequestHelper.GetParam(_metodReqs[_i], "contentsMD5")); _simpEtys.Add(_lis); } string _jsonSimpEtys = __JsonSerial.Serialize(_simpEtys); byte[] _bts = System.Text.Encoding.UTF8.GetBytes(_jsonSimpEtys); return(GZipStreamHelper.GZipCompress(_bts)); }
public byte[] DataRequest_By_SimpDEs_All_GZip(byte[] methodBts) { if (methodBts == null) { return(null); } var metBts = GZipStreamHelper.GZipDecompress(methodBts); var jsonSimpEtys = DataRequest_By_SimpDEs(Encoding.UTF8.GetString(metBts)); var bts = Encoding.UTF8.GetBytes(jsonSimpEtys); return(GZipStreamHelper.GZipCompress(bts)); }
public byte[] DataRequest_By_SimpDEs_All_GZip(byte[] methodBts) { #if SUDID_KEY_REGE if (!MachineCode.CurrentMachineCode.Hash.Equals(SUDID_KEY_REGE)) { return(null); } #endif byte[] _metBts = GZipStreamHelper.GZipDecompress(methodBts); string _jsonSimpEtys = DataRequest_By_SimpDEs(System.Text.Encoding.UTF8.GetString(_metBts)); byte[] _bts = System.Text.Encoding.UTF8.GetBytes(_jsonSimpEtys); return(GZipStreamHelper.GZipCompress(_bts)); }