예제 #1
0
        public void Write(IGatewayMessage message)
        {
            Guard.NotNull(message, "message");

            byte[] bytes = GatewayPacket.Pack(message, _gatewayBlobStore);
            _queue.AddMessage(bytes);
        }
예제 #2
0
        public void Write(IGatewayMessage message)
        {
            Guard.NotNull(message, "message");

            byte[] bytes = GatewayPacket.Pack(message, _gatewayBlobStore);
            if (_isSequential)
            {
                SequentialWrite(bytes);
            }
            else
            {
                ParallelWrite(bytes);
            }
        }