예제 #1
0
 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);
     }
 }
예제 #2
0
 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);
     }
 }