public virtual async Task DeleteAsync(AggregateRouteGetByRouteIdInputDto input)
        {
            var routeId        = long.Parse(input.RouteId);
            var aggregateRoute = await _aggregateReRouteRepository.GetByRouteIdAsync(routeId);

            await _aggregateReRouteRepository.DeleteAsync(aggregateRoute);

            await DistributedEventBus.PublishAsync(new ApigatewayConfigChangeEventData(aggregateRoute.AppId, "AggregateRoute", "Delete"));
        }
Example #2
0
        public virtual async Task DeleteAsync(AggregateRouteGetByRouteIdInputDto aggregateRouteGetByRouteId)
        {
            var routeId        = long.Parse(aggregateRouteGetByRouteId.RouteId);
            var aggregateRoute = await _aggregateReRouteRepository.GetByRouteIdAsync(routeId);

            await _aggregateReRouteRepository.DeleteAsync(aggregateRoute);

            await _eventPublisher.PublishAsync(ApigatewayConfigChangeCommand.EventName,
                                               new ApigatewayConfigChangeCommand("AggregateRoute", "Delete"));
        }