public void MyTestSqlLauncher() { using (SqlLauncher launcher = DbPackage.CreateSampleSqlLauncher()) { Parallel.For(0, 100, i => // Just simulating multiple(100) producers { for (int j = 0; j < 200000; j++) { launcher.AddSampleSqlRow(i, j.ToString(), (i * 200000 + j) * 0.618m); } }); } }
public static void AddSampleSqlRow(this SqlLauncher launcher, int col0, string col1, decimal col2) { launcher.Post(col0, col1, col2); }