Exemple #1
0
 public TokenService(
     IHftInternalClient hftInternalClient,
     ILogger <TokenService> logger
     )
 {
     _hftInternalClient = hftInternalClient;
     _logger            = logger;
     _cache             = new ConcurrentDictionary <string, byte>();
 }
Exemple #2
0
 public HftController(
     IHftInternalClient hftInternalService,
     IRequestContext requestContext,
     Google2FaService google2FaService
     )
 {
     _hftInternalService = hftInternalService ?? throw new ArgumentNullException(nameof(hftInternalService));
     _requestContext     = requestContext ?? throw new ArgumentNullException(nameof(requestContext));
     _google2FaService   = google2FaService;
 }
 public WalletsController(
     IRequestContext requestContext,
     IClientAccountClient clientAccountService,
     IBalancesClient balancesClient,
     IHftInternalClient hftInternalService,
     IAssetsHelper assetsHelper)
 {
     _requestContext       = requestContext ?? throw new ArgumentNullException(nameof(requestContext));
     _clientAccountService = clientAccountService ?? throw new ArgumentNullException(nameof(clientAccountService));
     _balancesClient       = balancesClient ?? throw new ArgumentNullException(nameof(balancesClient));
     _hftInternalService   = hftInternalService ?? throw new ArgumentNullException(nameof(hftInternalService));
     _assetsHelper         = assetsHelper ?? throw new ArgumentNullException(nameof(assetsHelper));
 }