zoukankan      html  css  js  c++  java
  • remoting 用app.config文件来配置

    <!--服务端配置-->
    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
      <system.runtime.remoting>
        <application>
          <service>
            <wellknown
              mode="Singleton"  
              type="DataObjSpace.DataObj,DataObj"
              objecturi="abc.soap"></wellknown>
          </service>
          <channels>
            <channel prot="1234" ref="tcp"></channel>
          </channels>
        </application>
      </system.runtime.remoting>
    </configuration>
    
    
    <!--客户端配置-->
    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
      <system.runtime.remoting>
        <application>
          <client>
            <wellknown type="DataObj,DataObj " url="tcp://200.1.3.27:1234/abc.soap"></wellknown>
          </client>
          <channels>
            <channel ref="tcp" prot="0"></channel>
          </channels>
        </application>
      </system.runtime.remoting>
    </configuration>
    ////service remoting code 
    RemotingConfiguration.Configure(@"ServiceRemoting.exe.config", false); 
    
    
    //// Client remoting code 
    
    RemotingConfiguration.Configure(@"ClientRemoting.exe.config", false);
    
    
    
    ////一句搞定。
  • 相关阅读:
    vue-resource请求
    vue的生命周期
    Swift-多类型封装
    Swift
    Swift-structures 和 classes 初始化
    iOS-延时加载,延时初始化
    Swift-Closures
    WKWebView-填坑总结
    存档&&解档游戏状态
    循环引用 && weak strong
  • 原文地址:https://www.cnblogs.com/server126/p/2081659.html
Copyright © 2011-2022 走看看