update csharp client code(support mutiply thread)