随笔分类 -  服务

WCF、Remoting、Webservice
摘要:View Code 1 public ProjectInstaller() 2 { 3 InitializeComponent(); 4 this.Committed += new InstallEventHandler(ProjectInstaller_Committed); 5 } 6 7 private void ProjectInstaller_Committed(object sender, InstallEventArgs e) 8 { 9 ... 阅读全文
posted @ 2012-05-24 02:41 石 磊 阅读(614) 评论(0) 推荐(0)
摘要:View Code public class RemotingWork : MarshalByRefObject { public void test() { int sum = 1; for (int i = 1; i <= 100; i++) { sum += i; } Atom.EventLog.Log.Write("sum=" + sum,""); } }创建服务程序View Code [Ru... 阅读全文
posted @ 2012-05-09 13:40 石 磊 阅读(315) 评论(0) 推荐(0)
摘要:1 public partial class VAV_File_Client 2 { 3 private string path = ""; 4 private string strBaseDir = ""; 5 private string host = ""; 6 private int port1 = 0; 7 private int port2 = 0; 8 private int port3 = 0; 9 private bool IsXuCh... 阅读全文
posted @ 2012-03-19 21:55 石 磊 阅读(4599) 评论(0) 推荐(1)