PTV has recently added new code samples in C# at the Developer Zone (section Code Samples). Please download the complete Visual Studio projects provided for each PTV xServer. Detailed information about the source code can be gathered through the PTV Cookbook.
Kind regards from Karlsruhe,
Dr. Michael Nutto