Esempio n. 1
0
 protected override void OtherDisposeMore()
 {
     if (_sdpCtor != null)
     {
         _sdpCtor.DeleteServiceRecord();
         _sdpCtor = null;
     }
 }
Esempio n. 2
0
        //--
        // The structs I created for creating SDP records are totally wrong,
        // so this doesn't work!!!!
        protected override void AddCustomServiceRecord(ref ServiceRecord fullServiceRecord, int livePort)
        {
            var livePortB = checked ((byte)livePort);

            ServiceRecordHelper.SetRfcommChannelNumber(fullServiceRecord,
                                                       livePortB);
            var sdpCtor = new BluetopiaSdpCreator(_fcty);

            sdpCtor.CreateServiceRecord(fullServiceRecord);
            _sdpCtor = sdpCtor;
        }