protected override void AddCustomServiceRecord(ref ServiceRecord fullServiceRecord, int livePort) { var livePort16 = checked ((UInt16)livePort); ServiceRecordHelper.SetL2CapPsmNumber(fullServiceRecord, livePort16); m_sdpService = SdpService.CreateCustom(fullServiceRecord, m_factory); }
protected override void AddCustomServiceRecord(ref ServiceRecord fullServiceRecord, int livePort) { var livePortB = checked ((byte)livePort); ServiceRecordHelper.SetRfcommChannelNumber(fullServiceRecord, livePortB); m_sdpService = SdpService.CreateCustom(fullServiceRecord, m_factory); }