public void Write(IGatewayMessage message) { Guard.NotNull(message, "message"); byte[] bytes = GatewayPacket.Pack(message, _gatewayBlobStore); _queue.AddMessage(bytes); }
public void Write(IGatewayMessage message) { Guard.NotNull(message, "message"); byte[] bytes = GatewayPacket.Pack(message, _gatewayBlobStore); if (_isSequential) { SequentialWrite(bytes); } else { ParallelWrite(bytes); } }