Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public ActionResult UpdateSite(string key)
- {
- if(key == KEY)
- {
- log4net.Config.XmlConfigurator.Configure();
- ILog log = LogManager.GetLogger("Default");
- string tUserName = ConfigurationManager.AppSettings["UName"];
- string tPassword = ConfigurationManager.AppSettings["UPassword"];
- ApiService apiSvc = new ApiService(tUserName, tPassword, new InterpreterFactory(),
- log);
- ControlPanel controller = new ControlPanel(Service, apiSvc, new DefaultAppStatusService(), log);
- CaptureResults results = controller.Capture();
- controller.EnrichData(results, new EnrichmentFactory(log));
- var newData = controller.PersistData(results);
- controller.ReplyWithNewData(newData);
- }
- return View();
- }
Add Comment
Please, Sign In to add comment