public PricesService(IPricesRepository pricesRepository, IPricesCacheRepository pricesCacheRepository,
                      IOptions <PricesSettings> settings)
 {
     _pricesRepository      = pricesRepository;
     _pricesCacheRepository = pricesCacheRepository;
     _settings = settings.Value;
 }
 public PricesController(BdContext context, IMapper mapper,
                         IPricesRepository pricesRepository, IUnitOfWork <Prices> unitOfWork)
 {
     _mapper           = mapper;
     _pricesRepository = pricesRepository;
     _unitOfWorkPrices = unitOfWork;
     _context          = context;
 }
예제 #3
0
 public PricesService(IPricesRepository PriceRepo,
                      IProductsRepository ProductRepo,
                      ISuppliersRepository SuppliersRepo)
 {
     _pricesRepository    = PriceRepo;
     _productsRepository  = ProductRepo;
     _suppliersRepository = SuppliersRepo;
 }
예제 #4
0
 public DataManager(IPricesRepository pricesRepository, IAdresRepository adresRepository, IContaktnoeLicoRepository contaktnoeLicoRepository, IClientsRepository clientsRepository, IDogovorRepository dogovoraRepository, IZakazyRepository zakazyRepository, IZakazyAdresyRepository zakazyAdresyRepository, IUsersRepository usersRepository, IRazrabotkiRepository razrabotkiRepository)
 {
     this.pricesRepository         = pricesRepository;
     this.adresRepository          = adresRepository;
     this.clientsRepository        = clientsRepository;
     this.contaktnoeLicoRepository = contaktnoeLicoRepository;
     this.dogovoraRepository       = dogovoraRepository;
     this.zakazyRepository         = zakazyRepository;
     this.zakazyAdresyRepository   = zakazyAdresyRepository;
     this.usersRepository          = usersRepository;
     this.razrabotkiRepository     = razrabotkiRepository;
 }
예제 #5
0
 public DataManager(IPricesRepository pricesRepository, IAdresRepository adresRepository, IContaktnoeLicoRepository contaktnoeLicoRepository, IClientsRepository clientsRepository, IDogovorRepository dogovoraRepository, IZakazyRepository zakazyRepository, IZakazyAdresyRepository zakazyAdresyRepository, IUsersRepository usersRepository, IRazrabotkiRepository razrabotkiRepository)
 {
     this.pricesRepository = pricesRepository;
        this.adresRepository = adresRepository;
        this.clientsRepository = clientsRepository;
        this.contaktnoeLicoRepository = contaktnoeLicoRepository;
        this.dogovoraRepository = dogovoraRepository;
        this.zakazyRepository = zakazyRepository;
        this.zakazyAdresyRepository = zakazyAdresyRepository;
        this.usersRepository = usersRepository;
        this.razrabotkiRepository = razrabotkiRepository;
 }
예제 #6
0
        public BlizzardApiService(ILogger <BlizzardApiService> logger,
                                  HttpClient httpClient,
                                  IItemRepository itemRepository,
                                  IPricesRepository pricesRepository)
        {
            _logger           = logger;
            _httpClient       = httpClient;
            _itemRepository   = itemRepository;
            _pricesRepository = pricesRepository;

            _baseUrl = "https://eu.api.blizzard.com";
        }
        public PricesService(
            IAssetsServiceWithCache assetsService,
            IInstrumentsAccessService instrumentsAccessService,
            IOrderBookService orderBookService,
            IPricesRepository pricesRepository,
            ISettingsService settingsService)
        {
            _assetsService            = assetsService;
            _instrumentsAccessService = instrumentsAccessService;
            _orderBookService         = orderBookService;
            _pricesRepository         = pricesRepository;
            _settingsService          = settingsService;

            _latestPrices   = new ConcurrentDictionary <string, Price>();
            _semaphores     = new ConcurrentDictionary <string, SemaphoreSlim>();
            _semaphoresLock = new object();
        }
예제 #8
0
 public PricesService(IPricesRepository pricesRepository)
 {
     _pricesRepository = pricesRepository;
 }
예제 #9
0
 public LotsService(ILotsRepository lotsRepository,
                    IPricesRepository pricesRepository)
 {
     this.lotsRepository   = lotsRepository;
     this.pricesRepository = pricesRepository;
 }
예제 #10
0
 public PointOfSaleTerminalService(IPricesRepository pricesRepository)
 {
     _terminal         = new PointOfSaleTerminal();
     _pricesRepository = pricesRepository;
 }
예제 #11
0
 public PricesService(ILogger <PricesService> logger, IPricesRepository pricesRepository)
 {
     _logger           = logger;
     _pricesRepository = pricesRepository;
 }