I have a console application that should run the full 17 Dtsx SSIS packages below.
[1] In the first thread, it must execute 3 packets simultaneously at the same time [2] In the second thread, it must execute 5 packets at once in parallel and so on ...
I heard about a concept called parallelism that is used for higher versions of the .NET Framework 4.0, etc. However, I'm not sure how to implement the same in Projcet.
I have some examples using streams, here is my code snippet.
Thread.Sleep(2000); Thread First = new Thread(new ThreadStart(FirstThread)); Thread Second = new Thread(new ThreadStart(SecondThread)); Thread Third = new Thread(new ThreadStart(ThirdThread)); First.Start(); Second.Start(); Third.Start(); static void FirstThread() { try { DTSXProcesser pkgProcess = new DTSXProcesser(); pkgProcess.ExecutePackage("Customers.csv"); pkgProcess.ExecutePackage("RouteInfo.csv"); pkgProcess.ExecutePackage("Items.csv"); } catch (Exception ex) { Logger.Log("Exception in Execution Of Package. Error : " + ex.ToString()); Thread.ResetAbort(); } }
Please help ...
source share