public void Stop() { lock (this.syncObject) { this.host.Close(); this.host = null; } }
public void Start(string[] args) { lock (this.syncObject) { this.host = new EasyDNSServiceHost(this.StateChangeHandler); this.host.Open(); Program.EventLogEntryDelegate = this.WriteEventLog; } }