.net remoting

 //public class TcpClientChannel : IChannelSender, IChannel, ISecurableChannel
                TcpClientChannel tc = new TcpClientChannel();//该类实现了IChannel接口,所以下面可以直接把tc当作IChannel来使用                
                System.Runtime.Remoting.Channels.ChannelServices.RegisterChannel(tc,true);

System.Runtime.Remoting.Channels.ChannelServices.RegisterChannel(System.Runtime.Remoting.Channels.IChannel)已过时,请使用System.Runtime.Remoting.ChannelServices.RegisterChannel(IChannel channel,bool ensureSecurity)
其实应该是请使用:
System.Runtime.Remoting.Channels.ChannelServices.RegisterChannel(IChannel channel,bool ensureS)

***************************************************
C#-->"类库"-->"生成"之后,就会在物理位置生成bin文件夹,其内有“生成”的*.dll文件

posted on 2007-11-09 15:12  simhare  阅读(365)  评论(0编辑  收藏  举报

导航