/// <summary> /// UploadXML in string string Cache /// </summary> /// <param name="companyCode"></param> /// <param name="userId"></param> /// <param name="fnolParametersXml"></param> /// <param name="serviceName"></param> private static void UploadXML(string companyCode, string userId, string fnolParametersXml, string serviceName) { string message = string.Empty; string zippedfnolXmlString = string.Empty; string stringCachekey = string.Empty; try { if (!string.IsNullOrEmpty(companyCode) && !string.IsNullOrEmpty(fnolParametersXml)) { //creating string cache key stringCachekey = companyCode.ToUpper() + "_" + userId.ToUpper() + "_" + serviceName.ToUpper(); StringCache stringCache = new StringCache(); zippedfnolXmlString = FNOLHelper.GZip(fnolParametersXml); stringCache.SetString(stringCachekey, cacheVersion, zippedfnolXmlString); } else { throw new Exception("Either Company Code or User Id is empty."); } } catch (Exception) { throw; } }