internal static ReindexBatchArguments FromOptions( IReadOnlyCollection <ExtendedQueryTagStoreEntry> queryTags, WatermarkRange watermarkRange, QueryTagIndexingOptions indexingOptions) { EnsureArg.IsNotNull(indexingOptions, nameof(indexingOptions)); return(new ReindexBatchArguments(queryTags, watermarkRange, indexingOptions.BatchThreadCount)); }
public ReindexDurableFunctionTests() { _extendedQueryTagStore = Substitute.For <IExtendedQueryTagStore>(); _instanceStore = Substitute.For <IInstanceStore>(); _instanceReindexer = Substitute.For <IInstanceReindexer>(); _schemaVersionResolver = Substitute.For <ISchemaVersionResolver>(); _options = new QueryTagIndexingOptions { ActivityRetryOptions = new RetryOptions(TimeSpan.FromSeconds(5), 10), }; _reindexDurableFunction = new ReindexDurableFunction( _extendedQueryTagStore, _instanceStore, _instanceReindexer, _schemaVersionResolver, Options.Create(_options)); }
internal static BatchCreationArguments FromOptions(long?maxWatermark, QueryTagIndexingOptions indexingOptions) { EnsureArg.IsNotNull(indexingOptions, nameof(indexingOptions)); return(new BatchCreationArguments(maxWatermark, indexingOptions.BatchSize, indexingOptions.MaxParallelBatches)); }