entrypoint.cs

来自「用Mapx 4.5开发的一个webgis」· CS 代码 · 共 26 行

CS
26
字号
using System;
using System.Windows.Forms;
using System.Data;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Tcp;


namespace WebGis
{
	public class EntryPoint
	{
		public static MapServer frmServer;
		[STAThread]
		static void Main() 
		{
			TcpServerChannel channel = new TcpServerChannel(8088);
			ChannelServices.RegisterChannel(channel);
			RemotingConfiguration.RegisterWellKnownServiceType(typeof(MapService), "MapService", WellKnownObjectMode.Singleton);

			frmServer = new MapServer();
			Application.Run(frmServer);
		}
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?