public object Any(GetLinks request) { try { var context = new TemplateContext { VirtualFiles = base.VirtualFiles, }.Init(); var page = context.GetPage("emails/test"); } catch (Exception e) { Console.WriteLine(e); throw; } return(new GetLinksResponse { Results = new Dictionary <string, string> { { "servicestack.net", "https://servicestack.net" }, { "StackOverflow", "http://stackoverflow.com/search?q=servicestack" }, { "Customer Forums", "https://forums.servicestack.net" }, { "Issue Tracker", "https://github.com/ServiceStack/Issues" }, { "Feature Requests", "http://servicestack.uservoice.com/forums/176786-feature-requests" }, { "Release Notes", "https://servicestack.net/release-notes" }, { "Live Demos", "https://github.com/ServiceStackApps/LiveDemos" }, { ".NET Core Live Demos", "https://github.com/NetCoreApps/LiveDemos" }, { "Gistlyn", "http://gistlyn.com" }, } }); }
public IList <LinkDto> GetLinkForWorkflow(LinkFilter filter) { var sp = new GetLinks(filter.Rn, filter.Direction); var result = ExecuteStoreProcedure <LinkDto>(sp); return(result); }
public IActionResult Index(UrlVM urlvm) { var list = new List <string>(); string url = urlvm.UrlBody.Url; int depth = urlvm.depth; var listLinks = GetLinks.GetAllLinks(url, depth, list); ViewBag.list = listLinks; return(View()); }
public object Any(GetLinks request) => new GetLinksResponse { Results = new Dictionary <string, string> { { "servicestack.net", "https://servicestack.net" }, { "StackOverflow", "http://stackoverflow.com/search?q=servicestack" }, { "Customer Forums", "https://forums.servicestack.net" }, { "Issue Tracker", "https://github.com/ServiceStack/Issues" }, { "Feature Requests", "http://servicestack.uservoice.com/forums/176786-feature-requests" }, { "Release Notes", "https://servicestack.net/release-notes" }, { "Live Demos", "https://github.com/ServiceStackApps/LiveDemos" }, { ".NET Core Live Demos", "https://github.com/NetCoreApps/LiveDemos" }, { "Gistlyn", "http://gistlyn.com" }, } };
public async Task ShowExecute() { if (webDriver == null) { webDriver = Browser.Initialize(); } List <string> keywords = new List <string>( input.Split(new string[] { "\r\n" }, StringSplitOptions.RemoveEmptyEntries)); GetLinks getLinks = new GetLinks(webDriver, this.positions, this.selectedTime.urlPart); foreach (string keyword in keywords) { this.output += await getLinks.Execute(keyword); } }
public void Test2() { var connection = new NhConnection("hibernate.cfg.xml"); connection.Connecting(); ISession session = connection.GetSessionFactory().OpenSession(); //IQuery Q = session.GetNamedQuery("Get_Links") // //.SetResultTransformer(new ToListResultTransformer()); // //session.CreateSQLQuery("").ad // .SetParameter("RN", 253655604) // .SetParameter("Direction", DirectionFind.Forward); // IQuery Q = session.CreateSQLQuery(" select PKG_UDO_UTIL.F_GetLinks()1 as ret from dual ").AddEntity(typeof(LinkDto)); //typeof(LinkDto); var sp = new GetLinks(253655604, DirectionFind.Backward); var Q = session.ExecuteSp(sp); var result = Q.List(); //var query = MockRepository.GenerateMock<IQueryOver<LinkDto, LinkDto>>(); //query.Stub(x => x.List<LinkDto>()).Return(); }