public void RemoveWhiteListEntry(string s) { lock (_syncObject) { ChannelFactory <IEvlWatcherService> f = new ChannelFactory <IEvlWatcherService>(new NetNamedPipeBinding(), new EndpointAddress("net.pipe://localhost/EvlWatcher")); IEvlWatcherService service = f.CreateChannel(); service.RemoveWhiteListEntry(s); } }
public void RemovePermanentIPBan(IPAddress a) { lock (_syncObject) { ChannelFactory <IEvlWatcherService> f = new ChannelFactory <IEvlWatcherService>(new NetNamedPipeBinding(), new EndpointAddress("net.pipe://localhost/EvlWatcher")); IEvlWatcherService service = f.CreateChannel(); service.ClearPermanentBan(a); } }