Exemplo n.º 1
0
 private void Initialize()
 {
     // TODO: Esta línea debería ir en el Threads Service seguramente
     ThreadPool.SetMinThreads(this.Options.Threads, this.Options.Threads);
     this.ConnectionString = ConnectionStringFactory.GetConnString();
     this.DatabaseName     = ConnectionStringFactory.GetDatabaseName();
     this.Query            = this.Options.Query ?? ConfigurationManager.AppSettings["query"];
     this.Tasks            = new List <Task>(this.Options.Threads);
     this.QueryExecutors   = new ConcurrentBag <QueryExecutor>();
 }