Header() public method

public Header ( string key, object value ) : MessageBuilder
key string
value object
return MessageBuilder
        private Task SendMessage(string command, IStompTransaction transaction)
        {
            var builder = new MessageBuilder(command);
            builder.Header("id", GetAckId());

            if (transaction != null)
            {
                builder.Header("transaction", transaction.Id);
            }

            return _transport.SendMessage(builder.WithoutBody());
        }
Exemplo n.º 2
0
        private Task SendMessage(string command, IStompTransaction transaction)
        {
            var builder = new MessageBuilder(command);

            builder.Header("id", GetAckId());

            if (transaction != null)
            {
                builder.Header("transaction", transaction.Id);
            }

            return(_transport.SendMessage(builder.WithoutBody()));
        }