コード例 #1
0
        private IAsyncResult BeginGetServiceRecordsUnparsedWidcomm(Guid service, AsyncCallback callback, object state)
        {
            WidcommBtInterface iface = m_factory.GetWidcommBtInterface();
            IAsyncResult       ar    = iface.BeginServiceDiscovery(DeviceAddress, service, SdpSearchScope.Anywhere, callback, state);

            return(ar);
        }
コード例 #2
0
        //----
        public override IAsyncResult BeginServiceDiscovery(
            BluetoothAddress address, Guid serviceGuid,
            AsyncCallback asyncCallback, Object state)
        {
            IAsyncResult ar2 = BtIf.BeginServiceDiscovery(address, serviceGuid, SdpSearchScope.ServiceClassOnly,
                                                          asyncCallback, state);

            return(ar2);
        }