I have the source code to a C# SDK that has everything necessary to manage the xroad infrastructure, feel free to fork and publish