First pass converting the Python client to C#.