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