惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

MyScale Blog
MyScale Blog
Apple Machine Learning Research
Apple Machine Learning Research
H
Help Net Security
雷峰网
雷峰网
V
Visual Studio Blog
G
Google Developers Blog
Microsoft Azure Blog
Microsoft Azure Blog
Hugging Face - Blog
Hugging Face - Blog
爱范儿
爱范儿
IT之家
IT之家
Engineering at Meta
Engineering at Meta
Microsoft Security Blog
Microsoft Security Blog
aimingoo的专栏
aimingoo的专栏
大猫的无限游戏
大猫的无限游戏
M
MIT News - Artificial intelligence
月光博客
月光博客
A
About on SuperTechFans
B
Blog RSS Feed
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
The GitHub Blog
The GitHub Blog
N
Netflix TechBlog - Medium
J
Java Code Geeks
云风的 BLOG
云风的 BLOG
Blog — PlanetScale
Blog — PlanetScale

博客园 - 3stones

.NET平台下WEB应用程序部署(安装数据库和自动配置)转 调试自定义操作/安装程序类的方法<转> - 3stones - 博客园 Sql Server中的集合操作Union Intersect Except 如何创建/安装/调试Windows服务&lt;转&gt; 安装 启动 停止 卸载 Windows服务 c# 利用Mircosoft URLRewriter.dll实现页面伪静态 [C#]将数字前面补0,补足设定的长度 用IFormatter实现&gt;存储容器(功能:实现游戏保存和读取) 加壳工具简介(图) 查壳脱壳工具介绍(图) .net制作的wap网站在手机中的测试 - 3stones - 博客园 vs2008开发wap网站(一) 英文面试自我介绍(一) 丁香园-英语面试精选 英语面试自我介绍范文(二) 创建一个从数据库读入内容的远程对象 c#中的remoting和webservice有什么区别 经典推荐--.Net面试法宝(面试题收集) Response.Redirect(),Server.Transfer(),Server.Execute()的区别
Remoting的注册与注销 - 3stones - 博客园
3stones · 2008-03-20 · via 博客园 - 3stones

//获得当前已注册的通道;

IChannel[] channels = ChannelServices.RegisteredChannels;

//关闭指定名为MyTcp的通道;

foreach (IChannel eachChannel in channels)

{

 if (eachChannel.ChannelName == "MyTcp")

 {

  TcpChannel tcpChannel = (TcpChannel)eachChannel;

  //关闭监听;

  tcpChannel.StopListening(null);

  //注销通道;

  ChannelServices.UnregisterChannel(tcpChannel);

 }

}