public bool Navigate(IHtmlDataProvider html) { this.RegisterProtocols(html, true); bool flag = this.ShowHtml(html.Html); this.RegisterProtocols(html, false); return(flag); }
/// <summary> /// The constructor calls another method to handle the request, but can /// optionally do so in a new thread. /// </summary> /// <param name="clientSocket"></param> /// <param name="asynchronously"></param> public ProcessClientRequest(Socket clientSocket, IHtmlDataProvider htmlDataProvider, Boolean asynchronously) { m_clientSocket = clientSocket; m_htmlDataProvider = htmlDataProvider; if (asynchronously) // Spawn a new thread to handle the request. new Thread(ProcessRequest).Start(); else ProcessRequest(); }
/// <summary> /// The constructor calls another method to handle the request, but can /// optionally do so in a new thread. /// </summary> /// <param name="clientSocket"></param> /// <param name="asynchronously"></param> public ProcessClientRequest(Socket clientSocket, IHtmlDataProvider htmlDataProvider, Boolean asynchronously) { m_clientSocket = clientSocket; m_htmlDataProvider = htmlDataProvider; if (asynchronously) { // Spawn a new thread to handle the request. new Thread(ProcessRequest).Start(); } else { ProcessRequest(); } }
private void RegisterProtocols(IHtmlDataProvider html, bool register) { string[] protocols = html.Protocols; if (protocols != null) { for (int i = 0; i < protocols.Length; i++) { if (register) { GenericProtocolManager.RegisterProtocol(protocols[i], html); } else { GenericProtocolManager.UnRegisterProtocol(protocols[i]); } } } }
public SocketServer(IHtmlDataProvider htmlDataProvider) { new Thread(this.Run).Start(); this.htmlDataProvider = htmlDataProvider; }
public SocketServer() { new Thread(this.Run).Start(); htmlDataProvider = null; }
public SocketServer(IHtmlDataProvider htmlDataProvider) { new Thread(this.Run).Start(); this.htmlDataProvider = htmlDataProvider; }
public SocketServer() { new Thread(this.Run).Start(); htmlDataProvider = null; }