Ejemplo n.º 1
0
        public IndependentDistributionNetworkOperatorsModule(
            ILoggerFactory loggerFactory,
            ServiceClient <LogRequest, LogResponse> loggingServiceClient,
            IIndependentDistributionNetworkOperatorsRepository repository)
        {
            _logger           = loggerFactory.CreateLogger <IndependentDistributionNetworkOperatorsModule>();
            _logServiceClient = loggingServiceClient;
            _repository       = repository;

            Get("/independent-distribution-network-operators", _ => GetIDNOAsync());
            Get("/independent-distribution-network-operators/{areaId}", p => GetIDNOByAreaIdAsync(new IndependentDistributionNetworkOperatorsRequest
            {
                AreaId = p.areaId
            }));
            Get("/independent-distribution-network-operators/{area}", p => GetIDNOByAreaAsync(new IndependentDistributionNetworkOperatorsRequest
            {
                Area = p.area
            }));
            Get("/independent-distribution-network-operators/{marketParticipantId}", p => GetIDNOByMarketParticipantIdAsync(new IndependentDistributionNetworkOperatorsRequest
            {
                MarketParticipantId = p.marketParticipantId
            }));
        }
Ejemplo n.º 2
0
 public IndependentDistributionNetworkOperatorsController(IIndependentDistributionNetworkOperatorsRepository repository)
 => _repository = repository;