Ejemplo n.º 1
0
 public softGetawayHost()
 {
     watchDog = new Timer(new TimerCallback(watchTimer), this, Timeout.Infinite, Timeout.Infinite);
     ServiceController[] services = ServiceController.GetServices();
     stopService("Realtek11nCU", services);
     stopService("RealtekCU", services);
     System.Diagnostics.Trace.Listeners.Add(new GetawayTraceListener());
     events            = new softEventQueue <SOFTEVENT>();
     events.processor += new EventHandler <softEventQueue <SOFTEVENT> .EventType>(events_processor);
     events.put(SOFTEVENT.LOAD, 0);
     events.start();
     disposed = false;
     notifier.notify("load");
 }
Ejemplo n.º 2
0
 public void watchTimer(Object state)
 {
     ServiceController[] services = ServiceController.GetServices();
     stopService("Wlansvc", services, false);
     startService("Wlansvc", services);
     events.put(SOFTEVENT.LOADINIT, 0);
 }