Updated CSharp client code