ServerProcess.Main C# (CSharp) Method

Main() static private method

static private Main ( ) : void
return void
	static void Main ()
	{
		TcpChannel channel = new TcpChannel (8082);
#if NET_2_0
		ChannelServices.RegisterChannel (channel, false);
#else
		ChannelServices.RegisterChannel (channel);
#endif

		Service service = new Service ();
		ObjRef obj = RemotingServices.Marshal (service, "TcpService");

		RemotingServices.Unmarshal (obj);

		Console.ReadLine ();

		RemotingServices.Disconnect (service);
	}
}
ServerProcess