private void MappingDeleteConfirmed(MappingDeleteConfirmedEvent obj)
        {
            if (obj.Cancelled)
            {
                return;
            }

            var response = this.mappingService.DeleteMapping("Broker", obj.MappingId, this.Broker.Id.Value);

            if (response.IsValid)
            {
                this.LoadBrokerFromService(this.broker.Id.Value, validAtString, true);
                this.eventAggregator.Publish(new StatusEvent(Message.MappingDeleted));
                return;
            }

            this.eventAggregator.Publish(
                new ErrorEvent(response.Fault != null ? response.Fault.Message : "Unknown Error"));
        }
Example #2
0
 public void OnCancel()
 {
     this.eventAggregator.Publish(MappingDeleteConfirmedEvent.ForCancellation());
 }