public void StartListening(AcceptStatusUpdate listener) { }
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; }