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