public HttpFilteringEngine(FirewallCheckHandler firewallCheckFunc, HttpMessageBeginHandler httpMessageBeginFunc, HttpMessageEndHandler httpMessageEndFunc, ushort httpListenerPort = 0, ushort httpsListenerPort = 0, uint numThreads = 0) { BuildCaBundleWithLocalTrustedCerts(); m_nativeEngine = StaticAssemblyResolver.GetFilteringEngine(firewallCheckFunc, httpMessageBeginFunc, httpMessageEndFunc, m_tmpCaBundlePath, httpListenerPort, httpsListenerPort, numThreads); InitListeners(); }
public HttpFilteringEngine(FirewallCheckHandler firewallCheckFunc, HttpMessageBeginHandler httpMessageBeginFunc, HttpMessageEndHandler httpMessageEndFunc, string caBundleAbsPath = "none", ushort httpListenerPort = 0, ushort httpsListenerPort = 0, uint numThreads = 0) { m_nativeEngine = StaticAssemblyResolver.GetFilteringEngine(firewallCheckFunc, httpMessageBeginFunc, httpMessageEndFunc, caBundleAbsPath, httpListenerPort, httpsListenerPort, numThreads); InitListeners(); }