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")); }
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")); }
public async Task DeleteAsync(long routeId) { await CheckPolicyAsync(); await _reRouteRepository.DeleteAsync(x => x.ReRouteId.Equals(routeId)); }
public async Task DeleteAsync(ReRouteGetByIdInputDto routeGetById) { await _reRouteRepository.DeleteAsync(x => x.ReRouteId.Equals(routeGetById.RouteId)); await _eventPublisher.PublishAsync(ApigatewayConfigChangeCommand.EventName, new ApigatewayConfigChangeCommand("ReRoute", "Delete")); }