コード例 #1
0
 /// <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();
 }
コード例 #2
0
 /// <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();
 }
コード例 #3
0
 protected void ChangeRetryOrder(RetryOrder @newOrder)
 {
     ((BacktraceDatabaseContext)_database.BacktraceDatabaseContext).RetryOrder = newOrder;
 }
コード例 #4
0
 public MockBacktraceDatabaseContext(string path, uint retryNumber, RetryOrder retryOrder)
     : base(path, retryNumber, retryOrder)
 {
 }