📄 invokeonstaclientchannelsinkprovider.cs
字号:
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
// <version>$Revision: 915 $</version>
// </file>
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Remoting.Channels;
using System.Collections;
namespace CustomSinks
{
class InvokeOnSTAClientChannelSinkProvider: IClientChannelSinkProvider
{
private IClientChannelSinkProvider nextProvider;
public InvokeOnSTAClientChannelSinkProvider(IDictionary properties, ICollection providerData)
{
}
IClientChannelSink IClientChannelSinkProvider.CreateSink(IChannelSender channel, string url, object remoteChannelData)
{
IClientChannelSink nextSink = nextProvider.CreateSink(channel, url, remoteChannelData);
IClientChannelSink thisSink = new InvokeOnSTAClientChannelSink(nextSink as IClientFormatterSink);
return thisSink;
}
IClientChannelSinkProvider IClientChannelSinkProvider.Next {
get {
return nextProvider;
}
set {
nextProvider = value;
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -