Esempio n. 1
0
 public ConnectedSphero(string name)
     : base(name)
 {
     _spheroSocketWrapper = new StreamSocketWrapper();
     _runner = new AwaitingConnectedSpheroRunner(_spheroSocketWrapper);
     _runner.Disconnected += (sender, args) => RaiseDisconnected();
     _runner.Start();
 }
Esempio n. 2
0
 public ConnectedSphero(PeerInformation peerInformation, StreamSocket spheroSocket)
     : base(peerInformation)
 {
     _spheroSocketWrapper = new StreamSocketWrapper(spheroSocket);
     _runner = new AwaitingConnectedSpheroRunner(_spheroSocketWrapper);
     _runner.Disconnected += (sender, args) => RaiseDisconnected();
     _runner.Start();
 }
Esempio n. 3
0
 public ConnectedSphero(BluetoothDeviceInfo peerInformation, NetworkStream spheroSocket)
     : base(peerInformation)
 {
     _spheroSocketWrapper = new StreamSocketWrapper(spheroSocket);
     _runner = new AwaitingConnectedSpheroRunner(_spheroSocketWrapper);
     _runner.Disconnected += (sender, args) => RaiseDisconnected();
     _runner.Start();
 }