Пример #1
0
 public WalletService(EtheriumService etheriumService,
                      ZCashService zCashService,
                      ILitecoinService litecoinService,
                      IDogecoinService dogecoinService,
                      IDashService dashService,
                      IBitcoinService bitcoinService,
                      IBitcoinCashService bitcoinCashService)
 {
     _etheriumService    = etheriumService;
     _zCashService       = zCashService;
     _litecoinService    = litecoinService;
     _dogecoinService    = dogecoinService;
     _dashService        = dashService;
     _bitcoinService     = bitcoinService;
     _bitcoinCashService = bitcoinCashService;
 }
Пример #2
0
 public SendController(WalletsRepository walletsRepository,
                       ILitecoinService litecoinService,
                       EventsRepository eventsRepository,
                       UserManager <IdentityUser> userManager,
                       UserRepository userRepository,
                       WalletService walletService,
                       BalanceProvider balanceProvider)
 {
     _walletsRepository = walletsRepository;
     _litecoinService   = litecoinService;
     _eventsRepository  = eventsRepository;
     _userManager       = userManager;
     _userRepository    = userRepository;
     _walletService     = walletService;
     _balanceProvider   = balanceProvider;
 }
Пример #3
0
        public CoinManager(IBitcoinCashService bitcoinCash,
                           IBitcoinService bitcoin,
                           IDashService dash,
                           IDogecoinService dogecoin,
                           ILitecoinService litecoin)
        {
            _bitcoinCashService = bitcoinCash;
            _bitcoinService     = bitcoin;
            _dashService        = dash;
            _dogecoinService    = dogecoin;
            _litecoinService    = litecoin;

            _coinServices = new List <ICoinService>();

            _coinServices.Add(bitcoinCash);
            _coinServices.Add(bitcoin);
            _coinServices.Add(dash);
            _coinServices.Add(dogecoin);
            _coinServices.Add(litecoin);
        }