public async Task RetryMessage(StoredMessage message)
        {
            _statusBar.SetSuccessStatusMessage("Retrying to send selected error message {0}", message.OriginatingEndpoint);
            await _serviceControl.RetryMessage(message.Id);

            _eventAggregator.Publish(new MessageStatusChanged(message.MessageId, MessageStatus.RetryIssued));
            _statusBar.Done();
        }
        public async Task RetryMessage(StoredMessage message)
        {
            _eventAggregator.Publish(new WorkStarted("Retrying to send selected error message {0}", message.SendingEndpoint));
            await _serviceControl.RetryMessage(message.Id);

            _eventAggregator.Publish(new MessageStatusChanged(message.MessageId, MessageStatus.RetryIssued));
            _eventAggregator.Publish(new WorkFinished());
        }
        public async void RetryMessage()
        {
            _eventAggregator.Publish(new WorkStarted("Retrying to send selected error message {0}", FocusedRow.SendingEndpoint));
            var msg = FocusedRow;
            await _serviceControl.RetryMessage(FocusedRow.Id);

            Rows.Remove(msg);
            _eventAggregator.Publish(new WorkFinished());
        }
        public virtual async void RetryMessage()
        {
            _statusBar.SetSuccessStatusMessage("Retrying to send selected error message {0}", StoredMessage.OriginatingEndpoint);
            var msg = (StoredMessage)FocusedMessage;
            await _serviceControl.RetryMessage(FocusedMessage.Id);

            Messages.Remove(msg);
            _statusBar.Done();
        }
        public override void Execute(object parameter)
        {
            var message = parameter as StoredMessage;

            if (message == null)
            {
                return;
            }

            eventAggregator.PublishOnUIThread(new WorkStarted("Retrying to send selected error message {0}", message.SendingEndpoint));
            serviceControl.RetryMessage(message.Id);
            eventAggregator.PublishOnUIThread(new RetryMessage {
                Id = message.Id
            });
            eventAggregator.PublishOnUIThread(new WorkFinished());

            message.Status = MessageStatus.RetryIssued;

            OnCanExecuteChanged();
        }
Beispiel #6
0
        public override void Execute(object parameter)
        {
            var message = parameter as StoredMessage;

            if (message == null)
            {
                return;
            }

            using (workNotifier.NotifyOfWork($"Retrying to send selected error message {message.SendingEndpoint}"))
            {
                serviceControl.RetryMessage(message.Id);
                eventAggregator.PublishOnUIThread(new RetryMessage {
                    Id = message.Id
                });
            }

            message.Status = MessageStatus.RetryIssued;

            OnCanExecuteChanged();
        }