Example #1
0
 public HRIFacade() : base()
 {
     using (var commFacade = new CommonFacade())
     {
         filePrefix      = commFacade.GetValueParamByName(Constants.ParameterName.HRFilePrefix);
         host            = commFacade.GetValueParamByName(Constants.ParameterName.HRSFTPHost);
         port            = commFacade.GetValueParamByName(Constants.ParameterName.HRSFTPPort).ToNullable <int>() ?? 22;
         username        = WebConfig.GetHRIUser();
         password        = WebConfig.GetHRIPassword();
         localPath       = commFacade.GetValueParamByName(Constants.ParameterName.HRPathImport);
         errorPath       = commFacade.GetValueParamByName(Constants.ParameterName.HRPathError);
         sourcePath      = commFacade.GetValueParamByName(Constants.ParameterName.HRPathSource);
         remoteDirectory = commFacade.GetValueParamByName(Constants.ParameterName.HRSFTPRemoteDir);
         _download       = commFacade.GetValueParamByName(Constants.ParameterName.HRSFTPDownload)
                           .ToNullable <bool>() ?? false;
     }
 }