/// <summary> /// This is a javascript application. /// </summary> /// <param name="page">HTML document rendered by the web server which can now be enhanced.</param> public Application(IApp page) { var s = new IHTMLPre { innerText = 1234567L.ToCustomString() }; s.AttachTo(page.body); }
/// <summary> /// This is a javascript application. /// </summary> /// <param name="page">HTML document rendered by the web server which can now be enhanced.</param> public Application(IApp page) { Action getCurrency = async delegate { var c = await this.GetConversionRate(); if (c.ContainsKey("GBP")) { Console.WriteLine(c["GBP"].ToString()); } Console.WriteLine(c.ToString()); var p = new IHTMLPre { innerText = c["GBP"].ToString() }; p.AttachTo(page.body); }; getCurrency(); }