Esempio n. 1
0
 public ExplorerBehavior(Repository repo, ConcurrentChain chain, CallbackInvoker callbacks, ChainEvents events)
 {
     if (repo == null)
     {
         throw new ArgumentNullException(nameof(repo));
     }
     if (chain == null)
     {
         throw new ArgumentNullException(nameof(chain));
     }
     _Chain      = chain;
     _Repository = repo;
     _Callbacks  = callbacks;
     _Events     = events;
 }
Esempio n. 2
0
 public NBxplorerInitializer(
     RPCClient rpc,
     ExplorerConfiguration configuration,
     ConcurrentChain chain,
     Repository repository,
     CallbackInvoker invoker,
     ChainEvents events)
 {
     _RPC           = rpc;
     _Configuration = configuration;
     _Network       = _Configuration.Network;
     _Events        = events;
     _Chain         = chain;
     _Repository    = repository;
     _Invoker       = invoker;
 }