コード例 #1
0
 public void Stop()
 {
     lock (this.syncObject)
     {
         this.host.Close();
         this.host = null;
     }
 }
コード例 #2
0
        public void Start(string[] args)
        {
            lock (this.syncObject)
            {
                this.host = new EasyDNSServiceHost(this.StateChangeHandler);
                this.host.Open();

                Program.EventLogEntryDelegate = this.WriteEventLog;
            }
        }