C# implementation of the Photon protocol