Inheritance: IStreamSocketWrapper, IDisposable
コード例 #1
0
ファイル: ConnectedSphero.cs プロジェクト: jihlee/BallControl
 public ConnectedSphero(BluetoothDevice bluetoothDevice, BluetoothSocket socket)
     : base(bluetoothDevice)
 {
     _spheroSocketWrapper = new StreamSocketWrapper(socket);
     _runner = new NonAwaitingConnectedSpheroRunner(_spheroSocketWrapper);
     _runner.Disconnected += (sender, args) => RaiseDisconnected();
     _runner.Start();
 }
コード例 #2
0
ファイル: ConnectedSphero.cs プロジェクト: slodge/BallControl
 public ConnectedSphero(BluetoothDevice bluetoothDevice, BluetoothSocket socket)
     : base(bluetoothDevice)
 {
     _spheroSocketWrapper = new StreamSocketWrapper(socket);
     _runner = new NonAwaitingConnectedSpheroRunner(_spheroSocketWrapper);
     _runner.Disconnected += (sender, args) => RaiseDisconnected();
     _runner.Start();
 }