public RepositoryGateway()
        {
            storage =
                ServiceContainer.Kernel.Get<IStorage>(
                    new ConstructorArgument("numberOfHashTables", NumberOfHashTables));
                /*Number of LSH Tables, used for storage purposes*/

            permutations =
                ServiceContainer.Kernel.Get<IPermutations>(
                    new ConstructorArgument("pathToPermutations", PathToPermutations),
                    new ConstructorArgument("separator", Separator)); /*Permutations*/

            cts = new CancellationTokenSource();
            repository = new Repository(ServiceContainer.Kernel.Get<IFingerprintService>(), ServiceContainer.Kernel.Get<IWorkUnitBuilder>(), storage, permutations);
            createStride = new IncrementalStaticStride(StrideSizeIncremental, SamplesInFingerprint);
        }
Example #2
0
        /// <summary>
        ///   Repository gateway parameter less constructor
        /// </summary>
        public RepositoryGateway()
        {
            _storage = ServiceContainer.Kernel.Get<IStorage>(new ConstructorArgument("numberOfHashTables", NUMBER_OF_HASH_TABLES)); /*Number of LSH Tables, used for storage purposes*/

            _permutations = ServiceContainer.Kernel.Get<IPermutations>(new ConstructorArgument("pathToPermutations", PATH_TO_PERMUTATIONS),
                new ConstructorArgument("separator", SEPARATOR)); /*Permutations*/

            _cts = new CancellationTokenSource();
            _repository = new Repository(_storage, _permutations);
            _createStride = new IncrementalStaticStride(STRIDE_SIZE_INCREMENTAL, SAMPLES_IN_FINGERPRINT);
        }