Пример #1
0
 public override Stream RequestCaseData(CaseDataInfo caseDataInfo)
 {
     try
     {
         if (caseDataInfo.fileType.Equals(FileType.ManifestFile))
         {
             string     fileDirectory = m_CargoHostEndPoint.GetManifestDir();
             FileStream stream        = new FileStream(Path.Combine(fileDirectory, caseDataInfo.FileName), FileMode.Open);
             return(stream);
         }
         else if (caseDataInfo.fileType.Equals(FileType.FTIFile))
         {
             FileStream stream = new FileStream(Path.Combine(m_TIPManagerComm.FTIImageDirectory, caseDataInfo.FileName), FileMode.Open);
             return(stream);
         }
         else
         {
             return(base.RequestCaseData(caseDataInfo));
         }
     }
     catch (Exception exp)
     {
         throw new FaultException(new FaultReason(exp.Message));
     }
 }