add csharp client thread count control