C# implementation of a Server