using System; using System.IO; using System.Runtime.Serialization; using System.ServiceModel; namespace WcfServer { internal class Program { private static void Main() { using (var host = new ServiceHost(typeof (StreamServices))) { host.Opened += (a,…