Ejemplo n.º 1
0
 public virtual void Connect(IScannerConnectorEventHandler connectorEventsHandler)
 {
     CodeContract.Requires(connectorEventsHandler != null);
     _connectorEventsHandler = connectorEventsHandler;
     _scanner = ConnectToScanner();
     _connectorEventsHandler.WantToConnect(_scanner.SerialNumber, _scanner.IPAddress, _scanner.Status);
     StartBroadcasting();
 }
Ejemplo n.º 2
0
 public virtual void Connect(IScannerConnectorEventHandler connectorEventsHandler)
 {
     CodeContract.Requires(connectorEventsHandler != null);
     _connectorEventsHandler = connectorEventsHandler;
     _scanner = ConnectToScanner();
     _connectorEventsHandler.WantToConnect(_scanner.SerialNumber, _scanner.IPAddress, _scanner.Status);
     StartBroadcasting();
 }