Пример #1
0
        /// <summary>
        ///     Initializes a new instance of the <see cref="DatabaseMemoizationStore"/> class.
        /// </summary>
        public DatabaseMemoizationStore(MemoizationDatabase database)
        {
            Contract.RequiresNotNull(database);

            _tracer  = new MemoizationStoreTracer(database.Name);
            Database = database;
        }
Пример #2
0
        /// <summary>
        ///     Initializes a new instance of the <see cref="DatabaseMemoizationStore"/> class.
        /// </summary>
        public DatabaseMemoizationStore(ILogger logger, MemoizationDatabase database)
        {
            Contract.Requires(logger != null);
            Contract.Requires(database != null);

            _tracer   = new MemoizationStoreTracer(logger, database.Name);
            _database = database;
        }