Exemplo n.º 1
0
        protected BaseSendContext(TMessage message, CancellationToken cancellationToken)
            : base(new PayloadCache(), cancellationToken)
        {
            Message = message;

            _headers = new DictionarySendHeaders();

            MessageId = NewId.NextGuid();
            Durable   = true;
        }
Exemplo n.º 2
0
        public MessageSendContext(TMessage message)
        {
            Message = message;

            _headers = new DictionarySendHeaders();

            var messageId = NewId.Next();

            MessageId = messageId.ToGuid();

            SentTime = messageId.Timestamp;

            Durable = true;
        }
Exemplo n.º 3
0
        protected BaseSendContext(TMessage message, CancellationToken cancellationToken)
            : base(cancellationToken)
        {
            Message = message;

            _headers = new DictionarySendHeaders();

            var messageId = NewId.Next();

            MessageId = messageId.ToGuid();

            SentTime = messageId.Timestamp;

            Durable = true;
        }