예제 #1
0
        public NodeComService(IHostingEnvironment env, ITransactionUtil _transactionUtil)
        {
            JobScheduler.NodeComService = this;
            hostingEnvironment          = env;
            transactionUtil             = _transactionUtil;
            Peers = new List <Peer>();
            rng   = new Random();
            JobScheduler.WebAddress = hostname;

            NetworkLastOnline = DateTime.MinValue;
        }
예제 #2
0
 public AuthService(UASContext _context, ITransactionUtil _transactionUtil, IWalletUtil _walletUtil)
 {
     context         = _context;
     transactionUtil = _transactionUtil;
     walletUtil      = _walletUtil;
 }