コード例 #1
0
ファイル: AuthController.cs プロジェクト: MoreManga/RESTAPI
        public AuthController(IDummyNetworkService dummyNetworkService)
        {
            _dummyNetworkService = dummyNetworkService;

            //TODO move it to some other place and use balancer
            _dummyNetworkService.SetBaseUri("http://localhost:51002/");
        }
コード例 #2
0
        public PageParserService(
            IParseOrdersService parseOrdersService,
            IProxyService proxyService,
            IDummyNetworkService dummyNetworkService)
        {
            _parseOrdersService  = parseOrdersService;
            _proxyService        = proxyService;
            _dummyNetworkService = dummyNetworkService;

            //TODO move it to some other place and use balancer
            _dummyNetworkService.SetBaseUri("http://localhost:51004/");
        }
コード例 #3
0
ファイル: MangaService.cs プロジェクト: MoreManga/RESTAPI
        public MangaService(
            IDummyNetworkService dummyNetworkService,

            IMangaRepository mangaRepository,
            IChapterRepository chapterRepository,
            IChapterImageRepository chapterImageRepository,
            IMangaInfoRepository mangaInfoRepository)
        {
            _dummyNetworkService = dummyNetworkService;

            _mangaRepository        = mangaRepository;
            _chapterRepository      = chapterRepository;
            _chapterImageRepository = chapterImageRepository;
            _mangaInfoRepository    = mangaInfoRepository;

            //TODO move it to some other place and use balancer
            _dummyNetworkService.SetBaseUri("http://localhost:51005/");
        }