当前位置: 首页 > news >正文

做头像网站手机自适应网站建设维护

做头像网站,手机自适应网站建设维护,做网站赚谁的钱,网站建设视频此示例主要演示了net remoting,其中包含一个服务器程序Server.exe和一个客户端程序CAOClient.exe。客户端程序会通过http channel调用服务器端RemoteType.dll的对象和方法。服务器端的代码文件由下图所述#xff1a;Server.cs源代码 :using System;using System.Runtime.Remot…此示例主要演示了net remoting,其中包含一个服务器程序Server.exe和一个客户端程序CAOClient.exe。客户端程序会通过http channel调用服务器端RemoteType.dll的对象和方法。服务器端的代码文件由下图所述Server.cs源代码 :using System;using System.Runtime.Remoting;public class Server{public static void Main(string[] Args){// Load the configuration fileRemotingConfiguration.Configure(server.exe.config);Console.WriteLine(The server is listening. Press Enter to exit....);Console.ReadLine(); Console.WriteLine(GCing.);GC.Collect();GC.WaitForPendingFinalizers();}} Server.exe.config源代码: SYSTEM.RUNTIME.REMOTINGAPPLICATIONSERVICEACTIVATED typeClientActivatedType, RemoteType/SERVICECHANNELSCHANNEL refhttp port8088/CHANNELS/APPLICATION/SYSTEM.RUNTIME.REMOTING/CONFIGURATIONRemoteType.cs源代码:using System;using System.Runtime.Remoting.Lifetime;using System.Security.Principal;public class ClientActivatedType : MarshalByRefObject{private int i;// override the lease settings for this objectpublic override Object InitializeLifetimeService(){return null;}public string RemoteMethod(){// announce to the server that weve been called.Console.WriteLine(ClientActivatedType.RemoteMethod called.);// report our client identity nameithis.GetHashCode(); return RemoteMethod called. i;}public string RemoteMethod1(){return RemoteMethod1 called. i;}}客户端代码文件由下图所示CAOClient.cs源代码using System;using System.Runtime.Remoting;using System.Runtime.Remoting.Lifetime;public class Client{public static void Main(string[] Args){// Load the configuration fileRemotingConfiguration.Configure(CAOclient.exe.config); ClientActivatedType CAObject new ClientActivatedType();Console.WriteLine(Client-activated object: CAObject.RemoteMethod());Console.WriteLine(Client-activated object: CAObject.RemoteMethod1());Console.WriteLine(Press Enter to end the client application domain.);Console.ReadLine();}}CAOClient.exe.config源代码:CONFIGURATIONSYSTEM.RUNTIME.REMOTINGAPPLICATIONCLIENT urlhttp://localhost:8088ACTIVATED typeClientActivatedType, RemoteType/CLIENTCHANNELSCHANNEL refhttp port0/CHANNELS/APPLICATION/SYSTEM.RUNTIME.REMOTING/CONFIGURATION OK,编译以上代码文件使用“Visual Studio .net Command Prompt分别编译上述文件:csc /target:library RemoteType.cscsc Server.cscsc –reference:RemoteType.dll CAOClient.cs您会看到三个输出文件RemoteType.dll, Server.exe 和 CAOClient.exe。运行Remoting程序在命令行方式下启动Server.exe在命令行方式下启动CAOClient.exe
http://www.zqtcl.cn/news/988903/

相关文章:

  • 比较有名的diy制作网站做照片视频的网站
  • 河北石家庄建设网站wordpress nginx apache
  • 上海免费网站建设品牌wordpress主题安装失败下载失败
  • 买公司的网站商城系统开发
  • 网页设计国外设计欣赏网站深夜视频在线免费
  • 做网站怎么租用服务器杭州网站建设hzyze
  • .asp 网站北京最新防疫信息
  • 网站上传用什么软件做视频教程114查询
  • 网站小图标素材网站开发需要提供哪些东西
  • 阿里巴巴国际站买家入口百度建网站多少钱
  • 为网站网站做代理怎么判wordpress 调用当前分类名称
  • 多用户网站管理系统定制网站建设与运营案例
  • 毕业设计做的网站抄袭网站开发执行文档
  • 自己做网站都要什么软件网址你懂我意思正能量不用下载
  • 网站内容的创新wordpress美食主题
  • 程序员做游戏还是做网站好雅安移动网站建设
  • wordpress伪静态大学seo诊断网站免费诊断平台
  • 企业网站模板下载软件商务网站规划与建设心得
  • 做网站的像素是多少钱郑州公司网页
  • 北京游戏网站建设特殊符号网站
  • c 网站开发技术代注册公司要多少钱
  • 设计师参考效果图网站如何写网站建设实验结果分析
  • 网站备案 营业执照做企业网站注意些啥
  • 网站建设公司济南网络教学平台昆明理工大学
  • 原网站开发新功能世赛网站开发
  • 做一款小程序需要多少钱凡科的网站做seo比较难
  • 北京网页设计与网站建设最专业的手机网站建设
  • 做一个网站广州网站备案拍照
  • 做平面图片的网站wordpress批量添加连接
  • 做ppt哪些网站的图片质量高做电商网站需要多少时间