.net Remoting 的简单问题~~~巨分相送,帮顶有分
<system.runtime.remoting>
<application name= "WMSRemoteObject ">
<service>
<wellknown type= "WMSRemoteObject.NotifyPluginReport " objectUri= "WMSRemoteObject.NotifyPluginReport "
mode= "Singleton " />
</service>
<channels>
<channel ref= "tcp " port= "9999 "/>
</channels>
</application>
<application name= "WMSRemoteObject2 ">
.........这样是否可以???????
</application>
</system.runtime.remoting>
服务器在通过配置文件注册通道的时候,如何创建多个通道???多个通道能否公用一个端口??最好给出点注册多个通道的代码~~谢谢啦!!!
------解决方案--------------------帮顶!
------解决方案--------------------不懂~
------解决方案--------------------鼎````````
------解决方案-------------------- <channels>
<channel ref= "tcp " port= "9999 "/>
<channel ref= "http " port= "8888 "/>
</channels>
------解决方案--------------------服务端注册的时候
你可以把对象比如
WMSRemoteObject.NotifyPluginReport写到代码里面
注册的时候注册不同对像,但是端口使用这一个
------解决方案--------------------顶
------解决方案--------------------学习,帮顶!
------解决方案-------------------- <?xml version= "1.0 " encoding= "utf-8 " ?>
<configuration>
<system.runtime.remoting>
<application>
<service>
<wellknown
mode= "SingleCall "
type= "xxx, xxxx "
objectUri= "xxxxx " />
<wellknown
mode= "SingleCall "
type= "yyy , yyyy "
objectUri= "yyyyy " />
<wellknown
mode= "SingleCall "
type= "zzz, zzzz "
objectUri= "zzzzz " />
<wellknown
mode= "SingleCall "
type= " ... , ..... "
objectUri= ".... " />
</service>