コード例 #1
0
 public void StartListening(AcceptStatusUpdate listener)
 {
 }
コード例 #2
0
        public void StartListening(AcceptStatusUpdate listener)
        {
            if(listener == null)
            {
                throw new ArgumentNullException("listener");
            }
            if(string.IsNullOrEmpty(this._currentSearchString))
            {
                throw new InvalidOperationException("Cannot start listening without a search string");
            }

            this._listener = listener;

            if(this._isRunning)
            {
                this.StopListening();
            }

            this.StartRunning();
            this._isRunning = true;
        }