예제 #1
0
 public void SetHeader(string record)
 {
     if (!_csvReader.HasHeader())
     {
         IEnumerable <string> strHeaders = _csvReader.GetHeader(record);
         _csvReader.SetHeader(strHeaders);
         _userSalesCache.Create(_csvReader.GetHeader(), DataCacheKey.Headers, DataCacheDuration.Medium);
     }
     else
     {
         Dictionary <int, string> headers = _userSalesCache.Get <Dictionary <int, string> >(DataCacheKey.Headers);
         _csvReader.SetHeader(headers);
     }
 }