public void Run(string[] args) { AppStatistics appStatistics = configuration.Get <AppStatistics>(); ICommonOptions commonOptions = configuration.Get <ICommonOptions>(); try { Ensure.That(ThreadPool.SetMinThreads(32, 2)).IsTrue(); IVerificator verificator = configuration.Get <IntegerFactVerificator>(); verificator.Run(); } catch (Exception exception) { appStatistics.ThereWereErrors = true; log.Error(exception.ToString()); } }
public void Run(string[] args) { AppStatistics appStatistics = configuration.Get <AppStatistics>(); ICommonOptions commonOptions = configuration.Get <ICommonOptions>(); try { MathKernelConnector mathKernelConnector = configuration.Get <MathKernelConnector>(); mathKernelConnector.LoadMathKernel(); Ensure.That(ThreadPool.SetMinThreads(32, 2)).IsTrue(); IVerificator verificator = configuration.Get <OrdinaryVerificator>(); verificator.Run(); mathKernelConnector.UnloadMathKernel(); } catch (Exception exception) { appStatistics.ThereWereErrors = true; log.Error(exception.ToString()); } }