100165486.htm
来自「C#高级编程(第三版),顶死你们。。 。up」· HTM 代码 · 共 73 行
HTM
73 行
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>
16.7 小结
</title></head>
<body>
<div class="area">
<div class="col1">
<div class="lineBlue">
</div>
<!-- title -->
<div class="arcTitle">
<h1>
<a href="../16">
C#高级编程(第3版)【全文连载】
</a>
</h1>
<div style="text-align: center; font-size: 15px">
<a href="100165486.htm">
16.7 小结
</a>
</div>
<div style="text-align: center; font-size: 15px">
<a class="url" href="../../default.htm">http://book.csdn.net/</a>
2006-10-13 14:41:00
</div>
<div style="margin: 0px auto; width: 700px; border: solid 1px #0b5f98;">
<div style="float: left; width: 16px; background-color: #0b5f98; color: White; padding: 1px;">
图书导读
</div>
<div style="float: right; width: 670px; text-align: left; line-height: 16pt; padding-left: 2px">
<!--导读-->
<h1 id="divCurrentNode" style="color: #b83507; width: 100%; text-align: left; font-size: 12px; padding-left: 2px">当前章节:<a href='100165486.htm'><font color='red'>16.7 小结</font></a></h1>
<div id="divRelateNode" style="padding-left: 2px">
<div style='float:left;width:49%'>·<a href='100165483.htm'>16.6.4 异步远程调用</a></div><div style='float:right;width:49%'>·<a href='100165484.htm'>16.6.5 远程调用和事件</a></div><div style='float:left;width:49%'>·<a href='100165485.htm'>16.6.6 调用环境</a></div><div style='float:right;width:49%'>·<a href='100165487.htm'>17.1 System.Globalization命名空间</a></div><div style='float:left;width:49%'>·<a href='100165488.htm'>17.1.1 Unicode问题</a></div><div style='float:right;width:49%'>·<a href='100165489.htm'>17.1.2 文化和区域</a></div></div>
</div>
</div>
</div>
<!-- main -->
<div id="main">
<div id="text"> <link href="css.css" rel="stylesheet" type="text/css" /><h3 style="MARGIN-TOP: 11.4pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; FTEL: 11.4pt"><a ftel="_Toc507815569"><span lang="EN-US">16.7 </span></a><span style="FONT-FAMILY: 楷体_GB2312">小结</span></h3>
<p class="MsoNormal"><span style="FONT-FAMILY: 宋体">在本章中我们已经看到,使用</span><span lang="EN-US">.NET Remoting</span><span style="FONT-FAMILY: 宋体">可以直接通过网络调用方法。远程对象必须继承自</span><span lang="EN-US">MarshalBy RefObject</span><span style="FONT-FAMILY: 宋体">。在服务器应用程序中,要加载配置文件,只需要一个方法,就可以设置和运行信道和远程对象。在客户机中,我们载入配置文件并且使用运算符</span><span lang="EN-US">new</span><span style="FONT-FAMILY: 宋体">来实例化远程对象。</span></p>
<p class="MsoNormal"><span style="COLOR: black; FONT-FAMILY: 宋体">即使不使用配置文件,也可以使用</span><span lang="EN-US">.NET Remoting</span><span style="COLOR: black; FONT-FAMILY: 宋体">。在服务器上,只需创建信道和注册远程对象;而在客户机上,只需创建信道和使用远程对象。</span></p>
<p class="MsoNormal"><span lang="EN-US">.NET Remoting</span><span style="FONT-FAMILY: 宋体">体系结构也是非常灵活的,并可以扩展。这项技术的所有部分,如信道、代理、格式标识符、消息接收器等都是可插入的,并可以用定制的实现方式来替代。</span></p>
<p class="MsoNormal"><span style="COLOR: black; FONT-FAMILY: 宋体">使用</span><span lang="EN-US" style="COLOR: black">HTTP</span><span style="COLOR: black; FONT-FAMILY: 宋体">和</span><span lang="EN-US" style="COLOR: black">TCP</span><span style="COLOR: black; FONT-FAMILY: 宋体">信道可以通过网络进行通信,使用</span><span lang="EN-US" style="COLOR: black">SOAP</span><span style="COLOR: black; FONT-FAMILY: 宋体">和二进制格式标识符可以在发送参数前对其进行格式化。</span></p>
<p class="MsoNormal"><span style="COLOR: black; FONT-FAMILY: 宋体">最后讨论了无状态和有状态的对象类型的用法,它们可以由知名对象和客户激活的对象使用,而使用客户激活的对象可以确定如何使用租约机制指定远程对象的生存期。</span></p>
<p class="MsoNormal"><span style="FONT-FAMILY: 宋体">我们还讨论了</span><span lang="EN-US">.NET Remoting</span><span style="FONT-FAMILY: 宋体">可以与</span><span lang="EN-US">.NET Framework</span><span style="FONT-FAMILY: 宋体">的其他部分集成起来,例如调用异步的方法、使用</span><span lang="EN-US">delegate</span><span style="FONT-FAMILY: 宋体">和</span><span lang="EN-US">event</span><span style="FONT-FAMILY: 宋体">关键字执行回调等。</span></p></div>
<!-- page -->
<div class="page" style="text-align: center">
<a href="100165485.htm">上一页</a> <a href="index.html">首页</a> <a href="100165487.htm">下一页</a>
</div>
<div style="margin: 0px auto; width: 700px; border: solid 1px #0b5f98;">
<div style="float: left; width: 16px; background-color: #0b5f98; color: White; padding: 1px;">
图书导读
</div>
<div style="float: right; width: 670px; text-align: left; line-height: 16pt; padding-left: 2px">
<!--导读-->
<h1 id="divCurrentNode2" style="color: #b83507; width: 100%; text-align: left; font-size: 12px; padding-left: 2px">当前章节:<a href='100165486.htm'><font color='red'>16.7 小结</font></a></h1>
<div id="divRealteNod2" style="padding-left: 2px">
<div style='float:left;width:49%'>·<a href='100165483.htm'>16.6.4 异步远程调用</a></div><div style='float:right;width:49%'>·<a href='100165484.htm'>16.6.5 远程调用和事件</a></div><div style='float:left;width:49%'>·<a href='100165485.htm'>16.6.6 调用环境</a></div><div style='float:right;width:49%'>·<a href='100165487.htm'>17.1 System.Globalization命名空间</a></div><div style='float:left;width:49%'>·<a href='100165488.htm'>17.1.1 Unicode问题</a></div><div style='float:right;width:49%'>·<a href='100165489.htm'>17.1.2 文化和区域</a></div></div>
</div>
</div>
</div>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?