안녕하세요, 다음 코드가 있습니다. 모든 계약을 만들지 않고 WCF를 만들고 싶습니다. 다른 MS는 코드에 내장되어 있습니다. 모든 메소드와 명령에 대해 작성해야 할 명령이 100 개 이상 있습니다. 기존 코드를 사용하는 것이 더 간단 할 것입니다.어떻게 레거시 코드를 WCF로 쉽게 변환 할 수 있습니까?
using System;
using System.Net.Sockets;
namespace Server
{
class Program
{
static void Main(string[] args)
{
TcpListener serverSocket = new TcpListener(55555);
TcpClient clientSocket = default(TcpClient);
serverSocket.Start();
Console.WriteLine(" >> " + "Server Started");
ServerLobby.Initialize();
ServerLobby.reader.Load("Users.xml");
while (true)
{
clientSocket = serverSocket.AcceptTcpClient();
Client client = new Client(clientSocket);
}
}
}
}
감사
업그레이드를 원하지 않는 이유는 무엇입니까? – ChaosPandion
메트로 앱이 연결되지 않습니다 – user1625293
더 이상 메트로라고 할 수 없습니다. – ChaosPandion