/// <summary> /// Initialize new instance of Backtrace Database Context /// </summary> /// <param name="path">Path to database directory</param> /// <param name="retryNumber">Total number of retries</param> /// <param name="retryOrder">Record order</param> public BacktraceDatabaseContext(string path, uint retryNumber, RetryOrder retryOrder) { _path = path; _retryNumber = checked ((int)retryNumber); RetryOrder = retryOrder; SetupBatch(); }
/// <summary> /// Initialize new instance of Backtrace Database Context /// </summary> /// <param name="path">Path to database directory</param> /// <param name="retryNumber">Total number of retries</param> /// <param name="retryOrder">Record order</param> /// <param name="deduplicationStrategy"> Deduplication strategy type </param> public BacktraceDatabaseContext( string path, uint retryNumber, RetryOrder retryOrder, DeduplicationStrategy deduplicationStrategy = DeduplicationStrategy.None) { _path = path; _retryNumber = checked ((int)retryNumber); RetryOrder = retryOrder; DeduplicationStrategy = deduplicationStrategy; SetupBatch(); }
protected void ChangeRetryOrder(RetryOrder @newOrder) { ((BacktraceDatabaseContext)_database.BacktraceDatabaseContext).RetryOrder = newOrder; }
public MockBacktraceDatabaseContext(string path, uint retryNumber, RetryOrder retryOrder) : base(path, retryNumber, retryOrder) { }