/// <summary> /// Creates a new instance of <see cref="T:InTheHand.Net.Sockets.L2CapClient"/>. /// </summary> public L2CapClient() // : this(BluetoothFactory.Factory) { // HACK foreach (var f in BluetoothFactory.Factories) { try { var cli = f.DoGetL2CapClient(); m_impl = cli; return; } catch (NotImplementedException) { } }//for throw new NotSupportedException("L2CapClient"); // // if (PlatformVerification.IsMonoRuntime) { //#if NETCF // throw new RankException("IsMonoRuntime on NETCF!!"); //#elif BlueZ // m_impl = new InTheHand.Net.Bluetooth.BlueZ.BluezL2CapClient(null); //#endif // } else { // m_impl = InTheHand.Net.Bluetooth.Widcomm.WidcommL2CapClient.Create(); // } }
internal L2CapClient(IBluetoothClient impl) { var impl2 = (IL2CapClient)impl; m_impl = impl2; }
internal L2CapClient(IL2CapClient impl) { m_impl = impl; }