/// <summary> /// Called when the device search completes, and results /// in a device table entry /// </summary> /// <param name="entry">The entry that was found</param> void IDeviceSearchCallback.DeviceFound(DeviceTableEntry entry) { lock (_lock) { if (_state == ClientState.GetDeviceInfo) { _device = entry; this._sendInitialRequestSegment(); } else { _handle.FeedAbort(AbortReason.Other); _transitionTo(ClientState.Disposed); } } }
/// <summary> /// Called when the device search completes, and results /// in a device table entry /// </summary> /// <param name="entry">The entry that was found</param> void IDeviceSearchCallback.DeviceFound(DeviceTableEntry entry) { lock(_lock) { if(_state == ClientState.GetDeviceInfo) { _device = entry; this._sendInitialRequestSegment(); } else { _handle.FeedAbort(AbortReason.Other); _transitionTo(ClientState.Disposed); } } }