public EntityWatchRepository(IMainDatabaseFactory db) { if (db == null) { throw new ArgumentNullException(nameof(db)); } this.db = db; }
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; }
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; }
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; }
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); }
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; }