Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Connections;
- using ListEntities;
- using System;
- using System.Collections.Generic;
- using System.Configuration;
- using System.Diagnostics;
- using System.IO;
- using System.Linq;
- using System.Text;
- using System.Threading;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- namespace ConsoleForTesting
- {
- class Program
- {
- static String path = @"C:\Users\Martin\Projects\DBManager\DBMANAGER\web.config";
- static void Main(string[] args)
- {
- ConfigurationManager.RefreshSection("appSettings");
- for (int i = 1; i <= 100; i++)
- {
- Thread t = new Thread(delegate() { WriteXML(i); });
- t.Start();
- }
- }
- static void WriteXML(int id)
- {
- Console.WriteLine("ID " + id + " - START");
- new XML_Action().InsertAction(DateTime.Now, "THREAD_TEST", "ID " + id, "INFO");
- Console.WriteLine("ID " + id + " - END");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement