private void StoreCommand(IDurableMessage command) { var envelope = new Envelope <IDurableMessage>(command, _activeRetryPolicy, command.AcknowledgmentId); if (envelope.ShouldRetry) { _queuedCommands.Add(envelope); } }
private void StoreEvent(IDurableMessage @event, string subscriberKey) { var envelope = new Envelope <IDurableMessage>(@event, _activeRetryPolicy, @event.AcknowledgmentId, subscriberKey); if (envelope.ShouldRetry) { _queuedEvents.Add(envelope); } }