How do you know what flow code is in?
-
There's a code:
Thread newClient = new Thread(StartProcessing); newClient.IsBackground = true; newClient.Start();
It has a function. The flow is a client's number.
How do you get inside?
StartProcessing
the current flow name?
-
Try using the currentThread class Thread static properties - it represents the current flow. For example:
public static void StartProcessing() { // your code lock(_lockObj) { Console.WriteLine(Thread.CurrentThread.Name); } }