Пример #1
0
        private void StoreCommand(IDurableMessage command)
        {
            var envelope = new Envelope <IDurableMessage>(command, _activeRetryPolicy, command.AcknowledgmentId);

            if (envelope.ShouldRetry)
            {
                _queuedCommands.Add(envelope);
            }
        }
Пример #2
0
        private void StoreEvent(IDurableMessage @event, string subscriberKey)
        {
            var envelope = new Envelope <IDurableMessage>(@event, _activeRetryPolicy, @event.AcknowledgmentId, subscriberKey);

            if (envelope.ShouldRetry)
            {
                _queuedEvents.Add(envelope);
            }
        }