예제 #1
0
        public void Run()
        {
            OptionsModel optionsModel = _optionsManager.ReadOptions();

            _viewModel.Options = optionsModel;
            _viewModel.Options.ParsedParams = null;
            _viewModel.Show();
        }
예제 #2
0
        public void CreateConfiguration()
        {
            DisposeConfiguration();
            var optionsModel = _optionsManager.ReadOptions();

            IWhiteSource whiteCache;

            if (optionsModel.WhiteCacheThreadsCount != 0)
            {
                whiteCache = _whiteCacheFactory.CreateWithParams(optionsModel.WhiteCacheThreadsCount, optionsModel.WhiteCacheThreadsCount);
            }
            else
            {
                whiteCache = _whiteCacheFactory.CreateWithParams(1, 1);
            }
            whiteCache.Initialize();
            _configuration = _continuousConfigurationFactory.CreateWithBindings(optionsModel, whiteCache);
        }