private static void ProcessResultsCore(Connection connection, Message message) { if (message.IsAck) { connection._ackHandler.TriggerAck(message.CommandId); } else if (message.IsCommand) { var command = connection._serializer.Parse <Command>(message.Value, message.Encoding); connection.ProcessCommand(command); // Only send the ack if this command is waiting for it if (message.WaitForAck) { // If we're on the same box and there's a pending ack for this command then // just trip it if (!connection._ackHandler.TriggerAck(message.CommandId)) { connection._bus.Ack( acker: connection._connectionId, waiter: message.Source, commandId: message.CommandId).Catch(connection._logger); } } } }
private static void ProcessResultsCore(Connection connection, Message message) { if (message.IsAck) { connection._logger.LogError("Connection {0} received an unexpected ACK message.", connection.Identity); return; } var command = connection._serializer.Parse <Command>(message.Value, message.Encoding); connection.ProcessCommand(command); // Only send the ack if this command is waiting for it if (message.WaitForAck) { connection._bus.Ack( acker: connection._connectionId, commandId: message.CommandId).Catch(connection._logger); } }
private static void ProcessResultsCore(Connection connection, Message message) { if (message.IsAck) { connection._logger.LogError("Connection {0} received an unexpected ACK message.", connection.Identity); return; } var command = connection._serializer.Parse<Command>(message.Value, message.Encoding); connection.ProcessCommand(command); // Only send the ack if this command is waiting for it if (message.WaitForAck) { connection._bus.Ack( acker: connection._connectionId, commandId: message.CommandId).Catch(connection._logger); } }
private static void ProcessResultsCore(Connection connection, Message message) { if (message.IsAck) { connection._ackHandler.TriggerAck(message.CommandId); } else if (message.IsCommand) { var command = connection._serializer.Parse<Command>(message.Value, message.Encoding); connection.ProcessCommand(command); // Only send the ack if this command is waiting for it if (message.WaitForAck) { // If we're on the same box and there's a pending ack for this command then // just trip it if (!connection._ackHandler.TriggerAck(message.CommandId)) { connection._bus.Ack(connection._connectionId, message.CommandId).Catch(); } } } }