示例#1
0
 public ExchangeTotalSupplyProvider(
     Func <string, IExchangeGateway> exchangeGatewayFactory,
     ITokenInfoProvider tokenInfoProvider)
 {
     _exchangeGatewayFactory = exchangeGatewayFactory;
     _tokenInfoProvider      = tokenInfoProvider;
 }
示例#2
0
 public TokenInfoController(ITokenInfoProvider tokenInfoProvider, IApiKeyContextProvider apiKeyContextProvider,
                            IAccessTokenClientRepo tokenClientRepo)
 {
     _tokenInfoProvider     = tokenInfoProvider;
     _apiKeyContextProvider = apiKeyContextProvider;
     _tokenClientRepo       = tokenClientRepo;
 }
 public FromErc20TokenLiquidityProvider(
     ITokenInfoProvider tokenInfoProvider,
     Func <string, IErc20Gateway> erc20GatewayFactory)
 {
     _tokenInfoProvider   = tokenInfoProvider;
     _erc20GatewayFactory = erc20GatewayFactory;
 }
示例#4
0
 public RoleController(IRoleService <TRole> roleService, ITokenInfoProvider tokenInfoProvider,
                       IOptionsMonitor <IdentityApiOptions> options)
 {
     _roleService       = roleService;
     _tokenInfoProvider = tokenInfoProvider;
     _options           = options;
 }
示例#5
0
 public TokenInfoController(ITokenInfoProvider tokenInfoProvider, IApiKeyContextProvider apiKeyContextProvider,
                            IAccessTokenClientRepo tokenClientRepo, ApiSettings apiSettings)
 {
     _tokenInfoProvider     = tokenInfoProvider;
     _apiKeyContextProvider = apiKeyContextProvider;
     _tokenClientRepo       = tokenClientRepo;
     _isEnabled             = apiSettings.IsFeatureEnabled(ApiFeature.TokenInfo.GetConfigKeyName());
 }
示例#6
0
 public ExchangeEventMapper(
     IExchangeEventEntityFactory exchangeEventEntityFactory,
     IBlockTimestampProvider blockTimestampProvider,
     ITokenInfoProvider tokenInfoProvider,
     Func <string, IExchangeGateway> exchangeGatewayFactory)
 {
     _exchangeEventEntityFactory = exchangeEventEntityFactory;
     _blockTimestampProvider     = blockTimestampProvider;
     _tokenInfoProvider          = tokenInfoProvider;
     _exchangeGatewayFactory     = exchangeGatewayFactory;
 }
 public ExchangeMapper(
     ITokenInfoProvider tokenInfoProvider,
     ITokenLiquidityProvider tokenLiquidityProvider,
     IEthLiquidityProvider ethLiquidityProvider,
     IExchangeTotalSupplyProvider exchangeTotalSupplyProvider,
     IExchangeThemeProvider exchangeThemeProvider,
     IExchangeEntityFactory exchangeEntityFactory)
 {
     _tokenInfoProvider           = tokenInfoProvider;
     _tokenLiquidityProvider      = tokenLiquidityProvider;
     _ethLiquidityProvider        = ethLiquidityProvider;
     _exchangeTotalSupplyProvider = exchangeTotalSupplyProvider;
     _exchangeThemeProvider       = exchangeThemeProvider;
     _exchangeEntityFactory       = exchangeEntityFactory;
 }
 public EmployeesController(IBaseInterface <EmployeeDto, Employee> employeeRepository, ILoggerFactory loggerFactory, ITokenInfoProvider tokenInfoProvider)
 {
     _logger             = loggerFactory.CreateLogger <EmployeesController>();
     _employeeRepository = employeeRepository;
     _tokenInfoProvider  = tokenInfoProvider;
 }
		public RpnCalculator(ITokenInfoProvider tokenInfoProvider,
			IRpnInputValidator inputValidator)
		{
			_tokenInfoProvider = tokenInfoProvider;
			_inputValidator = inputValidator;
		}
示例#10
0
 public CompanyController(IBaseInterface <CompanyDto, Company> companyRepo, ILoggerFactory loggerFactory, ITokenInfoProvider tokenInfoProvider)
 {
     _logger      = loggerFactory.CreateLogger <CompanyController>();
     _companyRepo = companyRepo;
 } // Dependency Injection
示例#11
0
        public TokenInfoProviderCacheDecorator(ITokenInfoProvider tokenInfoProvider)
        {
            _tokenInfoProvider = tokenInfoProvider;

            _cache = new Dictionary <string, TokenInfo>();
        }
		public RpnToParenthesisNotationConverterConverter(IRpnInputValidator inputValidator, 
			ITokenInfoProvider tokenInfoProvider)
		{
			_inputValidator = inputValidator;
			_tokenInfoProvider = tokenInfoProvider;
		}
		public RpnInputValidator(ITokenInfoProvider tokenInfoProvider)
		{
			_tokenInfoProvider = tokenInfoProvider;
		}