18.6.txt
来自「《Microsoft Visual C# .NET 2003开发技巧大全》源代码」· 文本 代码 · 共 29 行
TXT
29 行
Listing 18.6 Remoting Configuration File with a Sink Provider
<?xml version=”1.0” encoding=”utf-8” ?>
<configuration>
<system.runtime.remoting>
<channelSinkProviders>
<clientProviders>
<provider id=”logger”
type=”_12_LoggingSink.LoggingSinkProvider,
12_LoggingSink” />
</clientProviders>
</channelSinkProviders>
<application>
<client>
<wellknown url=”http://localhost:8088/Demo”
type=”_1_RemoteObject.RemoteObject, 1_RemoteObject” />
</client>
<channels>
<channel port=”0” ref=”http”>
<clientProviders>
<formatter ref=”soap” />
<provider ref=”logger” file=”c:/log.txt” />
</clientProviders>
</channel>
</channels>
</application>
</system.runtime.remoting>
</configuration>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?