public void Run() { try { transceiver.ReadNextMessage(buffer, HandleMessageAction); } catch (InvalidOperationException) { //TODO exception handling code } if (linkLayerMode == LinkLayerMode.BALANCED) { primaryLinkLayer.RunStateMachine(); secondaryLinkLayer.RunStateMachine(); } else { if (primaryLinkLayer != null) { primaryLinkLayer.RunStateMachine(); } else if (secondaryLinkLayer != null) { secondaryLinkLayer.RunStateMachine(); } } }
public void Run() { transceiver.ReadNextMessage(buffer, HandleMessageAction); if (linkLayerMode == LinkLayerMode.BALANCED) { primaryLinkLayer.RunStateMachine(); secondaryLinkLayer.RunStateMachine(); } else { if (primaryLinkLayer != null) { primaryLinkLayer.RunStateMachine(); } else if (secondaryLinkLayer != null) { secondaryLinkLayer.RunStateMachine(); } } }