public Main(IContext context, string channelName, int redirectionPort) { _interface = IpcConnectClient <HookInterface>(channelName); _redirectionPort = (ushort)redirectionPort; //_interface.Ping(); }
public Main(IContext context, string channelName, List <string> ipsWhitelist, int redirectionPort) { _interface = IpcConnectClient <HookInterface>(channelName); _whitelist = ipsWhitelist.Select(ip => IPAddress.Parse(ip)); _redirectionPort = (ushort)redirectionPort; _interface.Ping(); }
public Main(IContext context, string channelName, IEnumerable <string> ipsWhitelist, int redirectionPort) { _logger = IpcConnectClient <HookInterface>(channelName); }