public AuthController( UserManager <AppUser> userManager, IConfiguration configuration, MyIdentityDbContext userDbContext, RoleManager <IdentityRole> roleManager, IPrivateCustomerService privateContext, ICitizenshipService citizenshipContext, ICityService cityContext, IOfficeService officeContext, IBalanceService balanceContext, IBusinessCustomerService businessContext, IJwtAuthManager jwtAuthManager ) { _userManager = userManager; _configuration = configuration; _privateContext = privateContext; _userDbContext = userDbContext; _roleManager = roleManager; _citizenshipContext = citizenshipContext; _cityContext = cityContext; _officeContext = officeContext; _balanceContext = balanceContext; _businessContext = businessContext; _jwtAuthManager = jwtAuthManager; }
public MarketService(FinanceDataService financeDataService, IAssetsFactory assetsFactory, IBalanceService balanceService) { _financeDataService = financeDataService; _assetsFactory = assetsFactory; _balanceService = balanceService; }
public PortfolioService(FinanceDataService financeData, IBalanceService balanceService, IAssetsFactory assetsFactory) { _financeData = financeData; _balanceService = balanceService; _assetsFactory = assetsFactory; }
public SettlementService( IIndexPriceService indexPriceService, IIndexSettingsService indexSettingsService, IAssetHedgeSettingsService assetHedgeSettingsService, ISettlementRepository settlementRepository, IQuoteService quoteService, IBalanceService balanceService, ISettlementTransferService settlementTransferService, IInstrumentService instrumentService, IPositionService positionService, ITokenService tokenService, ILogFactory logFactory) { _indexPriceService = indexPriceService; _indexSettingsService = indexSettingsService; _assetHedgeSettingsService = assetHedgeSettingsService; _settlementRepository = settlementRepository; _quoteService = quoteService; _balanceService = balanceService; _settlementTransferService = settlementTransferService; _instrumentService = instrumentService; _positionService = positionService; _tokenService = tokenService; _log = logFactory.CreateLog(this); }
public async Task <OperationResult <CostWithInvestSum> > AggregatePortfolioCostWithInvestSum( [CurrentUserIdGlobalState] int userId, [Service] IAggregatePortfolioService aggregatePortfolioService, [Service] IBalanceService balanceService, IEnumerable <int> portfolioIds) { var ids = portfolioIds.ToList(); var cost = await aggregatePortfolioService.AggregateCost(ids, userId); if (!cost.IsSuccess) { return(new OperationResult <CostWithInvestSum>() { IsSuccess = cost.IsSuccess, Message = cost.Message }); } var investSum = balanceService.GetAggregateInvestSum(ids, userId); return(new OperationResult <CostWithInvestSum>() { IsSuccess = true, Message = "Суммарная стоимость и суммарнаые инвестиции", Result = new CostWithInvestSum() { Cost = cost.Result, InvestSum = investSum } }); }
public SiriusWalletsService( long brokerAccountId, IApiClient siriusApiClient, IClientDialogsClient clientDialogsClient, IAssetsService assetsService, IKycStatusService kycStatusService, IClientAccountClient clientAccountClient, IBalanceService balanceService, ICqrsEngine cqrsEngine, IOperationsClient operationsClient, TargetClientIdFeeSettings feeSettings, ValidationService validationService, IdempotencyService idempotencyService, ILogFactory logFactory) { _brokerAccountId = brokerAccountId; _siriusApiClient = siriusApiClient; _clientDialogsClient = clientDialogsClient; _assetsService = assetsService; _kycStatusService = kycStatusService; _clientAccountClient = clientAccountClient; _balanceService = balanceService; _cqrsEngine = cqrsEngine; _operationsClient = operationsClient; _feeSettings = feeSettings; _validationService = validationService; _idempotencyService = idempotencyService; _log = logFactory.CreateLog(this); }
public CallbackMessageService(IBalanceService balanceService, ITopUpService topUpService, IWithdrawalService withdrawalService, ISettingsService settingsService) { _balanceService = balanceService ?? throw new ArgumentNullException(nameof(balanceService)); _topUpService = topUpService ?? throw new ArgumentNullException(nameof(topUpService)); _withdrawalService = withdrawalService ?? throw new ArgumentNullException(nameof(withdrawalService)); _settingsService = settingsService ?? throw new ArgumentNullException(nameof(settingsService)); }
public BalanceReportService( IBalanceService balanceService, IQuoteService quoteService) { _balanceService = balanceService; _quoteService = quoteService; }
public SpotController( IInternalOrderService internalOrderService, IBalanceService balanceService) { _internalOrderService = internalOrderService; _balanceService = balanceService; }
public ClientBalanceController( ICompanyService companyService, IBalanceService balanceService) { _companyService = companyService; _balanceService = balanceService; }
public BalanceUpdateRegistrationProjection( IBalanceService balanceService, string neoAssetId) { _balanceService = balanceService; _neoAssetId = neoAssetId; }
public static AllPortfoliosReport GetAllPortfoliosReport(int userId, IMarketService marketService, IBalanceService balanceService, IAggregatePortfolioService aggregatePortfolioService) { var allCostResult = aggregatePortfolioService.AggregateCost(new[] { 1, 2 }, userId).Result; var allCost = FinanceHelpers.GetPriceDouble(allCostResult.Result); var paperProfitResult = aggregatePortfolioService.AggregatePaperProfit(new[] { 1, 2 }, userId).Result.Result; var allPaperProfit = FinanceHelpers.GetPriceDouble(paperProfitResult.Value); var allPaperProfitPercent = paperProfitResult.Percent; var paymentProfitResult = aggregatePortfolioService.AggregatePaymentProfit(new[] { 1, 2 }, userId).Result.Result; var allPaymentProfit = FinanceHelpers.GetPriceDouble(paymentProfitResult.Value); var allPaymentProfitPercent = paymentProfitResult.Percent; var allInvestSum = FinanceHelpers.GetPriceDouble(balanceService.GetAggregateInvestSum(new [] { 1, 2 }, userId)); var balanceResult = balanceService.AggregateBalance(new[] { 1, 2 }, userId).Result; var allBalance = FinanceHelpers.GetPriceDouble(balanceResult.Result); return(new AllPortfoliosReport() { AllCost = allCost, AllPaperProfit = allPaperProfit, AllPaperProfitPercent = allPaperProfitPercent, AllPaymentProfit = allPaymentProfit, AllPaymentProfitPercent = allPaymentProfitPercent, AllInvestSum = allInvestSum, AllUserBalance = allBalance }); }
public HealthService(IBalanceService balanceService, ITransactionHistoryService txHistoryService, ITransactionService transactionService) { _balanceService = balanceService; _txHistoryService = txHistoryService; _transactionService = transactionService; }
public TransactionsController(ITransactionService transactionService, IBalanceService balanceService, IBlockchainAssetsService blockchainAssetsService) { _transactionService = transactionService; _balanceService = balanceService; _blockchainAssetsService = blockchainAssetsService; }
public HomeController(IHostingEnvironment env, ICustomerService customerService, IPermsService permsService, IBalanceService balanceService, IBillingDetailsService billingDetailsService) { _env = env; _customerService = customerService; _permsService = permsService; _balanceService = balanceService; _billingDetailsService = billingDetailsService; }
public ValidationService( IAssetsService assetsService, IBalanceService balanceService ) { _assetsService = assetsService; _balanceService = balanceService; }
public AllPortfoliosReport OnUpdatePortfoliosReport( [Service] IMarketService marketService, [Service] IBalanceService balanceService, [EventMessage] int userId, [Service] IAggregatePortfolioService aggregatePortfolioService) { return(QueryGetters.GetAllPortfoliosReport(userId, marketService, balanceService, aggregatePortfolioService)); }
public CategoryController(IBalanceService balanceService, IMapper mapper, UserManager <User> userManager) { _balanceService = balanceService; _mapper = mapper; _userManager = userManager; }
public FinancialController(IPaymentService paymentService, IReceiptService receiptService, IBalanceService balanceService) { _paymentService = paymentService; _receiptService = receiptService; _balanceService = balanceService; }
public AllPortfoliosReport GetAllPortfoliosReport( [CurrentUserIdGlobalState] int userId, [Service] IMarketService marketService, [Service] IBalanceService balanceService, [Service] IAggregatePortfolioService aggregatePortfolioService) { return(QueryGetters.GetAllPortfoliosReport(userId, marketService, balanceService, aggregatePortfolioService)); }
public WalletBalanceJob(IBalanceService balanceService, TimeSpan period, ILogFactory logFactory) : base(period, logFactory) { _balanceService = balanceService; _log = logFactory.CreateLog(this); }
public BalanceController( IBalanceService balanceService, IMapper mapper ) { _balanceService = balanceService; _mapper = mapper; }
public TransferMoney( IAccountService accountService, IBalanceService balanceService, IUpdateService updateService) { this.accountService = accountService; this.balanceService = balanceService; this.updateService = updateService; }
public ClientChargesController( ICompanyService companyService, IMapper mapper, IBalanceService balanceService) { _companyService = companyService; _mapper = mapper; _balanceService = balanceService; }
public CustomersController( IBalanceService balanceService, IWalletsService walletsService, IMapper mapper) { _balanceService = balanceService; _walletsService = walletsService; _mapper = mapper; }
public BalanceIndicatorsReportService( IAssetSettingsService assetSettingsService, IQuoteService quoteService, IBalanceService balanceService) { _assetSettingsService = assetSettingsService; _quoteService = quoteService; _balanceService = balanceService; }
public BalancesTimer( IBalanceService balanceService, TimeSpan period, ILogFactory logFactory) { _balanceService = balanceService; _period = period; Log = logFactory.CreateLog(this); }
public TransactionsService( IDiscountService discountService, DbCardContext context, IBalanceService balanceService) { _discountService = discountService; _context = context; _balanceService = balanceService; }
public ClientBalanceDetailsController( ICompanyService companyService, IBalanceService balanceService, IMapper mapper) { _companyService = companyService; _balanceService = balanceService; _mapper = mapper; }
public ClientPaymentsController( ICompanyService companyService, IMapper mapper, IBalanceService balanceService) { _companyService = companyService; _mapper = mapper; _balanceService = balanceService; }
public ExternalBalancesTimer( IBalanceService balanceService, ITimersSettingsService timersSettingsService, ILogFactory logFactory) { _balanceService = balanceService; _timersSettingsService = timersSettingsService; Log = logFactory.CreateLog(this); }
public BillingSynchronizationManager(IBillingSyncConfigurationProvider config, IUrlTrackingStatService statService, ICompanyService companyService, ISubscriptionService subscriptionService, IBalanceService balanceService) { _config = config; _statService = statService; _companyService = companyService; _subscriptionService = subscriptionService; _balanceService = balanceService; }
public UrlTrackingService(ISubscriptionService subscriptionService, ITrackingUrlRepository trackingUrlRepository, IBalanceService balanceService, IUrlShortenerService urlShortenerService, IProjectUriProvider projectUriProvider, IMappingEngine mappingEngine, ICompanyService companyService) { _subscriptionService = subscriptionService; _trackingUrlRepository = trackingUrlRepository; _balanceService = balanceService; _urlShortenerService = urlShortenerService; _projectUriProvider = projectUriProvider; _mappingEngine = mappingEngine; _companyService = companyService; }
public BillingEventHandler( IBillingEventService billingEventService, IBalanceService balanceService, IBillingChargeService billingChargeService, IBillingEventLogService billingEventLogService, ICompanyService companyService, IEmailNotificationService notificationService) { _billingEventService = billingEventService; _balanceService = balanceService; _billingChargeService = billingChargeService; _billingEventLogService = billingEventLogService; _companyService = companyService; _notificationService = notificationService; _eventHandlers = new Dictionary<EventType, Func<DomainEvent, Task>> { { EventType.ChargeFailed, ChargeFailedAsync }, { EventType.ChargeRefunded, ChargeRefundedAsync }, { EventType.ChargeSucceeded, ChargeSucceededAsync }, }; }
public AccountUpdater(IBalanceService balanceService, ICreditCardService creditCardService) { this.balanceService = balanceService; this.creditCardService = creditCardService; }
public AdminClientService(ICompanyRepository companyRepository, IUserRepository userRepository, IBalanceService balanceService) { _companyRepository = companyRepository; _userRepository = userRepository; _balanceService = balanceService; }