Example #1
0
        public RebuildRunner(Rebuilder rebuilder, IOptions <RebuildOptions> rebuildOptions)
        {
            Guard.NotNull(rebuilder, nameof(rebuilder));
            Guard.NotNull(rebuildOptions, nameof(rebuildOptions));

            this.rebuilder      = rebuilder;
            this.rebuildOptions = rebuildOptions.Value;
        }
Example #2
0
        public RebuildRunner(Rebuilder rebuilder, IOptions <RebuildOptions> rebuildOptions, PopulateGrainIndexes populateGrainIndexes)
        {
            Guard.NotNull(rebuilder);
            Guard.NotNull(rebuildOptions);
            Guard.NotNull(populateGrainIndexes);

            this.rebuilder            = rebuilder;
            this.rebuildOptions       = rebuildOptions.Value;
            this.populateGrainIndexes = populateGrainIndexes;
        }