Beispiel #1
0
        public async Task DeleteAsync(ReRouteGetByIdInputDto input)
        {
            var reRoute = await _reRouteRepository.GetByReRouteIdAsync(input.RouteId);

            await _reRouteRepository.DeleteAsync(reRoute);

            await DistributedEventBus.PublishAsync(new ApigatewayConfigChangeEventData(reRoute.AppId, "ReRoute", "Delete"));
        }
Beispiel #2
0
        public async Task DeleteAsync(long routeId)
        {
            await CheckPolicyAsync();

            await _reRouteRepository.DeleteAsync(x => x.ReRouteId.Equals(routeId));

            await _distributedEventBus.PublishAsync(new OcelotConfigChangeCommand("ReRoute", "Delete"));
        }
        public async Task DeleteAsync(long routeId)
        {
            await CheckPolicyAsync();

            await _reRouteRepository.DeleteAsync(x => x.ReRouteId.Equals(routeId));

            await _eventPublisher.PublishAsync(ApiGatewayDomainConsts.Events_OcelotConfigChanged, new OcelotConfigChangeCommand("ReRoute", "Delete"));
        }
Beispiel #4
0
        public async Task DeleteAsync(long routeId)
        {
            await CheckPolicyAsync();

            await _reRouteRepository.DeleteAsync(x => x.ReRouteId.Equals(routeId));
        }
Beispiel #5
0
        public async Task DeleteAsync(ReRouteGetByIdInputDto routeGetById)
        {
            await _reRouteRepository.DeleteAsync(x => x.ReRouteId.Equals(routeGetById.RouteId));

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