RemotingConfiguration.ApplicationName 和
RemotingConfiguration.RegisterWellKnowServiceType(Type type,string objectUri,WellKnowObjectMode.Singleton)。
我想问的是下面那个string objectUri和ApplicationName是不是相同的,有什么不一样吗?
RemotingConfiguration.RegisterWellKnowServiceType(Type type,string objectUri,WellKnowObjectMode.Singleton)。
我想问的是下面那个string objectUri和ApplicationName是不是相同的,有什么不一样吗?
是服务寄宿的应用程序名称,可能是IIS例程名或一般应用程序(WinForm\Console App)名。
因为Remoting Service 一般需要寄宿在某个运行程序。2 objectUri:
指的是服务的URL,例如是"tpc://localhost:7001/myService",客户端知道该URI就可以连接到该服务。3 建立服务的例子
RemotingConfiguration.RegisterWellKnownServiceType(
typeof(IMyService),//服务接口
"myService",//服务URI
WellKnownObjectMode.SingleCall//服务访问方式
);