Esempio n. 1
0
 public List <FileStatusData> GetFileData(DateTime syncDate)
 {
     try
     {
         return(_fileService.GetFileStatusInfo(syncDate, _configurationManager.AppSetting("companyCode"))
                .Where(t => Path.GetExtension(t.FileName) == ".xml")
                .ToList());
     }
     catch (Exception e)
     {
         throw new UnityException("Unable to retrieve one step data", e);
     }
 }
Esempio n. 2
0
 public IDocumentChannel CreateChannel()
 {
     try
     {
         var binding = new BasicHttpBinding()
         {
             MaxReceivedMessageSize = 2147483647
         };
         var endPoint = new EndpointAddress(_configurationManager.AppSetting("documentService"));
         return(new ChannelFactory <IDocumentChannel>(binding, endPoint).CreateChannel());
     }
     catch (Exception e)
     {
         throw new UnityException("Unable to open channel", e);
     }
 }
        public ActionResult Index()
        {
            var environment = _configurationManager.AppSetting("environment");

            switch (environment.ToLower())
            {
            case "debug":
                return(PartialView("_debug"));

            case "test":
                return(PartialView("_test"));

            case "uat":
                return(PartialView("_uat"));

            case "prod":
                return(PartialView("_prod"));
            }

            return(PartialView("_prod"));
        }