Exemplo n.º 1
0
 public void Stop()
 {
     lock (this.syncObject)
     {
         this.host.Close();
         this.host = null;
     }
 }
Exemplo n.º 2
0
        public void Start(string[] args)
        {
            lock (this.syncObject)
            {
                this.host = new EasyDNSServiceHost(this.StateChangeHandler);
                this.host.Open();

                Program.EventLogEntryDelegate = this.WriteEventLog;
            }
        }