public static void ConfigureServices(string remoteHost, int remotePort, int localPort) { ConnectionBuilder connBuilder = new ConnectionBuilder(); ConnServ = connBuilder. ConfigureLocal(localPort) .ConfigureRemote(remoteHost, remotePort) .Build(); MessageStorage = new FileStorage($@"{remoteHost}{remotePort}.txt"); MessageServ = new MessageService.MessageService(MessageStorage); }