Пример #1
0
        /// <summary>
        ///     Initializes a new instance of the <see cref="RocksDbMemoizationStore"/> class.
        /// </summary>
        public RocksDbMemoizationStore(ILogger logger, IClock clock, RocksDbMemoizationStoreConfiguration config)
        {
            Contract.Requires(logger != null);
            Contract.Requires(config != null);
            Contract.Requires(clock != null);

            _tracer   = new MemoizationStoreTracer(logger, Component);
            _clock    = clock;
            _database = new RocksDbContentLocationDatabase(clock, config.Database, () => new MachineId[] { });
        }
Пример #2
0
 /// <nodoc />
 public RocksDbMemoizationStore(ILogger logger, IClock clock, RocksDbMemoizationStoreConfiguration config)
     : this(logger, new RocksDbMemoizationDatabase(config, clock))
 {
     // Do nothing. Just delegates to other constructor to allow capturing created database
 }
 /// <nodoc />
 public RocksDbMemoizationDatabase(RocksDbMemoizationStoreConfiguration config, IClock clock)
     : this(new RocksDbContentLocationDatabase(clock, config.Database, () => new MachineId[] { }))
 {
 }