public UserController(IBalanceManager balanceManager, IUserManager userManager, ILogger <UserController> logger) { _balanceManager = balanceManager; _userManager = userManager; _logger = logger; }
public ProductManager(ICategoryHandler categoryHandler, IProductHandler productHandler, IBalanceManager balanceManager, IPaymentManager paymentManager) { _categoryHandler = categoryHandler ?? throw new System.ArgumentNullException(nameof(_categoryHandler)); _productHandler = productHandler ?? throw new System.ArgumentNullException(nameof(_productHandler)); _balanceManager = balanceManager ?? throw new System.ArgumentNullException(nameof(_balanceManager)); _paymentManager = paymentManager ?? throw new System.ArgumentNullException(nameof(_paymentManager)); }
public CasinoEngine(IReader reader, IWriter writer, ICommandManager commandManager, IBalanceManager balanceManager, IMath mathProvider, IPlaySlotCommand playSlotCommand) { this.reader = reader; this.writer = writer; this.commandManager = commandManager; this.balanceManager = balanceManager; this.mathProvider = mathProvider; this.playSlotCommand = playSlotCommand; }
public EWork(ITagManager tagManager, IJobManager jobManager, IUserExtractor userExtractor, IReviewManager reviewManager, IBalanceManager balanceManager, IProposalManager proposalManager, INotificationManager notificationManager ) { TagManager = tagManager; JobManager = jobManager; UserExtractor = userExtractor; ReviewManager = reviewManager; BalanceManager = balanceManager; ProposalManager = proposalManager; NotificationManager = notificationManager; }
public AutoTradingProcessor( IOptions <AppSettings> settings, ILogger <AutoTradingProcessor> logger, IOrderProcessor orderProcessor, IBalanceManager balanceManager, ITradesManager tradesManager, IOrderManager orderManager, IBookManager bookManager, IDealManager dealManager, DealProcessor dealProcessor, NatsConnector connector) : base(settings, logger) { _logger = logger; _orderProcessor = orderProcessor; _balanceManager = balanceManager; _dealManager = dealManager; _tradesManager = tradesManager; _orderManager = orderManager; _dealProcessor = dealProcessor; _bookManager = bookManager; _connector = connector; _settings = settings; }
protected virtual void TryRollback(IBalanceManager balanceManager, string balanceName, string transactionId) { var checkErroCode = balanceManager.CheckTransaction(transactionId); if (checkErroCode == ErrorCode.Success) { var rollbackErrorCode = balanceManager.Rollback(transactionId); if (rollbackErrorCode == ErrorCode.Success) { Exception.LogRollbackSuccess(balanceName); } else { if (rollbackErrorCode == ErrorCode.UnknownError && TransactionRollbacked(balanceManager, transactionId)) { Exception.LogRollbackSuccess(balanceName); } else { Exception.LogRollbackFailure(balanceName, rollbackErrorCode.ToString()); } } } }
public BalanceOperator(IBalanceManager from, IBalanceManager to) { _from = from; _to = to; }
public FreelancingPlatformBalanceChecker(IBalanceManager balanceManager) => _balanceManager = balanceManager;
public CommandHandler(IGarbageProcessor garbageProcessor, IBalanceManager balanceManager) { this.GarbageProcessor = garbageProcessor; this.BalanceManager = balanceManager; this.InitializeStrategies(); }
public BalanceController() { _casinoBalanceManager = new CasinoBalanceManager(); _gameBalanceManager = new GameBalanceManager(); }
public BaseBalanceCommandHandler(ServiceResolver resolver) { _casinoBalanceManager = resolver(AppConstants.CasinoBalance); _gameBalanceManager = resolver(AppConstants.GameBalance); }
private bool TransactionRollbacked(IBalanceManager balanceManager, string transactionId) { var checkRollbackErrorCode = balanceManager.CheckTransaction(transactionId); return(checkRollbackErrorCode == ErrorCode.TransactionRollbacked); }
public BalanceController(BalanceFactory factory) { _factory = factory; _gameManager = _factory.GetManagerService(BalanceFactoryType.Game); _casinoManager = _factory.GetManagerService(BalanceFactoryType.Casino); }
public BalanceProcessor(IOptions <AppSettings> settings, ILogger logger, IBalanceManager balanceManager) : base(settings, logger) { _balanceManager = balanceManager; }
public GetCasinoBalanceQueryHandler(ServiceResolver resolver) { _casinoBalanceManager = resolver(AppConstants.CasinoBalance); }