Example #1
0
        public EntityWatchRepository(IMainDatabaseFactory db)
        {
            if (db == null)
            {
                throw new ArgumentNullException(nameof(db));
            }

            this.db = db;
        }
Example #2
0
        public EntityReceivingAddressStorage(IMainDatabaseFactory databaseFactory, Network network)
        {
            if (databaseFactory == null)
            {
                throw new ArgumentNullException(nameof(databaseFactory));
            }

            if (network == null)
            {
                throw new ArgumentNullException(nameof(network));
            }

            this.databaseFactory = databaseFactory;
            this.network         = network;
        }
Example #3
0
        public EntityWatchRepository(IMainDatabaseFactory db, JsonSerializer serializer)
        {
            if (db == null)
            {
                throw new ArgumentNullException(nameof(db));
            }

            if (serializer == null)
            {
                throw new ArgumentNullException(nameof(serializer));
            }

            this.db         = db;
            this.serializer = serializer;
        }
Example #4
0
        public EntityWatchRepository(IMainDatabaseFactory db, IRuleRepository rules)
        {
            if (db == null)
            {
                throw new ArgumentNullException(nameof(db));
            }

            if (rules == null)
            {
                throw new ArgumentNullException(nameof(rules));
            }

            this.db    = db;
            this.rules = rules;
        }
Example #5
0
        public BlocksStorage(IConfiguration config, IMainDatabaseFactory db)
        {
            if (config == null)
            {
                throw new ArgumentNullException(nameof(config));
            }

            if (db == null)
            {
                throw new ArgumentNullException(nameof(db));
            }

            this.db           = db;
            this.zcoinNetwork = ZcoinNetworks.Instance.GetNetwork(config.GetZcoinSection().Network.Type);
        }
Example #6
0
        public EntityRuleRepository(
            IMainDatabaseFactory db,
            ICallbackRepository callbacks,
            IReceivingAddressRepository addresses)
        {
            if (db == null)
            {
                throw new ArgumentNullException(nameof(db));
            }

            if (callbacks == null)
            {
                throw new ArgumentNullException(nameof(callbacks));
            }

            if (addresses == null)
            {
                throw new ArgumentNullException(nameof(addresses));
            }

            this.db        = db;
            this.callbacks = callbacks;
            this.addresses = addresses;
        }