How it works...

In steps 1 to 9, we opened the solution created in the previous recipe. Then, we added a .NET console application to the project. In steps 10 to 14, we added a reference to the library we created in the previous recipe. In step 16, we created the reference in the code for the library. In step 17, we  added code to create an instance of the ThreadList class. We called the ProcessPool() and stored the return value in a variable.

Finally, we displayed the output in the console window and, in steps 18 and 19, we tested the application.

Get .NET Standard 2.0 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.