public OrdersController(
     IRequestContext requestContext,
     IClientSessionsClient clientSessionsClient,
     IPersonalDataService personalDataService,
     IKycStatusService kycStatusService,
     IClientAccountClient clientAccountClient,
     IAssetsServiceClient assetsServiceClient,
     IMatchingEngineClient matchingEngineClient,
     FeeSettings feeSettings,
     IOperationsClient operationsClient,
     BaseSettings baseSettings,
     IcoSettings icoSettings,
     GlobalSettings globalSettings,
     IHistoryClient historyClient)
 {
     _requestContext       = requestContext;
     _clientSessionsClient = clientSessionsClient;
     _personalDataService  = personalDataService;
     _kycStatusService     = kycStatusService;
     _clientAccountClient  = clientAccountClient;
     _assetsServiceClient  = assetsServiceClient;
     _matchingEngineClient = matchingEngineClient;
     _feeSettings          = feeSettings;
     _operationsClient     = operationsClient;
     _baseSettings         = baseSettings;
     _icoSettings          = icoSettings;
     _globalSettings       = globalSettings;
     _historyClient        = historyClient;
 }
Exemplo n.º 2
0
 public CalculatorController(IAdditionService additionService,
                             ISubtractionService subtractionService,
                             IHistoryClient historyService)
 {
     _additionService    = additionService;
     _subtractionService = subtractionService;
     _historyService     = historyService;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HistoryController"/> class.
 /// </summary>
 public HistoryController(
     IHistoryClient historyClient,
     IAssetsReadModelRepository assetsReadModel,
     IAssetPairsReadModelRepository assetPairsReadModel)
 {
     _assetsReadModel     = assetsReadModel;
     _assetPairsReadModel = assetPairsReadModel;
     _historyClient       = historyClient;
 }
Exemplo n.º 4
0
 public ExportClientHistoryCommandHandler(
     IHistoryClient historyClient,
     IFileMaker fileMaker,
     IFileUploader fileUploader,
     IFileMapper fileMapper,
     IExpiryWatcher expiryWatcher,
     TimeSpan ttl)
 {
     _historyClient = historyClient;
     _fileMaker     = fileMaker;
     _fileUploader  = fileUploader;
     _fileMapper    = fileMapper;
     _expiryWatcher = expiryWatcher;
     _ttl           = ttl;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="OrdersController"/> class.
 /// </summary>
 public OrdersController(
     IMatchingEngineAdapter frequencyTradingService,
     RequestValidator requestValidator,
     IAssetPairsReadModelRepository assetPairsReadModel,
     IAssetsReadModelRepository assetsReadModel,
     [NotNull] IHistoryClient historyClient,
     ILogFactory logFactory)
 {
     _matchingEngineAdapter = frequencyTradingService ?? throw new ArgumentNullException(nameof(frequencyTradingService));
     _requestValidator      = requestValidator ?? throw new ArgumentNullException(nameof(requestValidator));
     _assetPairsReadModel   = assetPairsReadModel;
     _assetsReadModel       = assetsReadModel;
     _historyClient         = historyClient ?? throw new ArgumentNullException(nameof(historyClient));
     _log = logFactory.CreateLog(this);
 }
Exemplo n.º 6
0
 public HistoryController(
     IRequestContext requestContext,
     IClientAccountClient clientAccountService,
     ICqrsEngine cqrsEngine,
     IHistoryExportsRepository historyExportsRepository,
     IHistoryClient historyClient,
     IAssetsHelper assetsHelper,
     IBlockchainExplorersProvider blockchainExplorersProvider)
 {
     _requestContext              = requestContext ?? throw new ArgumentNullException(nameof(requestContext));
     _clientAccountService        = clientAccountService ?? throw new ArgumentNullException(nameof(clientAccountService));
     _cqrsEngine                  = cqrsEngine;
     _historyExportsRepository    = historyExportsRepository;
     _historyClient               = historyClient;
     _assetsHelper                = assetsHelper;
     _blockchainExplorersProvider = blockchainExplorersProvider;
 }
Exemplo n.º 7
0
 public AdditionService(ICalculatorRepository calculatorRepository, IAuditRepository <AdditionAuditRecord> auditRepository, IHistoryClient historyService)
     : base(calculatorRepository, auditRepository, historyService)
 {
 }
Exemplo n.º 8
0
 public HistoryController(ILogger <HistoryController> logger, IHistoryClient historyClient)
 {
     _logger        = logger;
     _historyClient = historyClient;
 }
 protected BaseCalculatorService(ICalculatorRepository calculatorRepository, IAuditRepository <T> auditRepository, IHistoryClient historyService)
 {
     CalculatorRepository = calculatorRepository;
     AuditRepository      = auditRepository;
     HistoryService       = historyService;
 }
Exemplo n.º 10
0
 public ContosoService(IVehicleClient vehicleClient, IHistoryClient historyClient)
 {
     this.vehicleClient = vehicleClient;
     this.historyClient = historyClient;
 }