Guest User

Untitled

a guest
May 24th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. _PollingThread = new Thread(new ThreadStart(ManagerThread));
  2. _PollingThread.IsBackground = true;
  3. _PollingThread.Start();
  4.  
  5. var sourceName = Thread.GetNamedDataSlot("Source");
  6. var data = Thread.SetData(sourceName, _PipelineName);
  7. ...
  8. // starts loop and begins processing things
  9.  
  10. var sourceName = Thread.GetNamedDataSlot("Source");
  11. var data = Thread.GetData(sourceName);
  12. string sourceTag = String.Empty;
  13.  
  14. if(data != null)
  15. {
  16. sourceTag = " [" + data.ToString() + "]";
  17. }
Add Comment
Please, Sign In to add comment