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; }
public FxPaygatePaymentUrlInputValidationModel( IHttpContextAccessor httpContextAccessor, IAssetsHelper assetHelper, IAssetDisclaimersClient assetDisclaimersClient, IPaymentSystemClient paymentSystemClient, IPersonalDataService personalDataService, IClientAccountClient clientAccountService, IAssetsServiceClient assetsServiceClient, IKycStatusService kycStatusService, ITierClient tierClient, IRateCalculatorClient rateCalculatorClient) { _assetsHelper = assetHelper; _assetDisclaimersClient = assetDisclaimersClient; _clientAccountService = clientAccountService; _assetsServiceClient = assetsServiceClient; _kycStatusService = kycStatusService; _tierClient = tierClient; _rateCalculatorClient = rateCalculatorClient; _clientId = httpContextAccessor.HttpContext.User?.Identity?.Name; var paymentLimitsTask = paymentSystemClient.GetPaymentLimitsAsync(); var pdTask = personalDataService.GetAsync(_clientId); Task.WhenAll(paymentLimitsTask, pdTask).GetAwaiter().GetResult(); _paymentLimitsResponse = paymentLimitsTask.Result; _personalData = pdTask.Result; RegisterRules(); }
public OperationsController( IAssetsServiceClient assetsServiceClient, IBalancesClient balancesClient, IKycStatusService kycStatusService, IClientAccountClient clientAccountClient, FeeSettings feeSettings, BaseSettings baseSettings, IOperationsClient operationsClient, ICqrsEngine cqrsEngine, IRequestContext requestContext, IConfirmationCodesClient confirmationCodesClient, Google2FaService google2FaService) { _assetsServiceClient = assetsServiceClient; _balancesClient = balancesClient; _kycStatusService = kycStatusService; _clientAccountClient = clientAccountClient; _feeSettings = feeSettings; _baseSettings = baseSettings; _operationsClient = operationsClient; _cqrsEngine = cqrsEngine; _requestContext = requestContext; _confirmationCodesClient = confirmationCodesClient; _google2FaService = google2FaService; }
public AssetsHelper( IAssetsServiceClient assetsService, IAssetsServiceUserDataClient assetsServiceUserDataClient, ICacheManager memoryCache ) { _assetsService = assetsService; _assetsServiceUserDataClient = assetsServiceUserDataClient; _memoryCache = memoryCache; }