本文整理汇总了C#中IServerChannelSink类的典型用法代码示例。如果您正苦于以下问题:C# IServerChannelSink类的具体用法?C# IServerChannelSink怎么用?C# IServerChannelSink使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IServerChannelSink类属于命名空间,在下文中一共展示了IServerChannelSink类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SinkStackEntry
// Constructor.
public SinkStackEntry(IServerChannelSink sink, Object state,
SinkStackEntry below)
{
this.sink = sink;
this.state = state;
this.below = below;
}
示例2: SoapServerFormatterSink
public SoapServerFormatterSink (SoapServerFormatterSink.Protocol protocol,
IServerChannelSink nextSink,
IChannelReceiver receiver)
{
this.next_sink = nextSink;
_receiver = receiver;
}
示例3: BidirTcpServerTransportSink
public BidirTcpServerTransportSink(IServerChannelSink nextSink, int port, String IPAddress)
{
_port = port;
_IPAddress = IPAddress;
_nextSink = nextSink;
// StartListening();
}
示例4: BinaryServerFormatterSink
public BinaryServerFormatterSink (BinaryServerFormatterSink.Protocol protocol,
IServerChannelSink nextSink,
IChannelReceiver receiver)
{
this.protocol = protocol;
this.next_sink = nextSink;
this.receiver = receiver;
}
示例5: CounterServerChannelSink
/// <summary>Erstellt eine neue Instanz von CounterServerChannelSink.</summary>
/// <param name="nextSink">Nächste Kanalsenke in der Senkenkette</param>
public CounterServerChannelSink(IServerChannelSink nextSink)
{
//Lock objekt erstellen
_lockObject = new object();
// Nächste Kanalsenke übernehmen
_next = nextSink;
}
示例6: HathiServerChannelSink
public HathiServerChannelSink(IServerChannelSinkProvider Provider, IChannelReceiver channel)
{
IServerChannelSink nextServer = (IServerChannelSink)new BinaryServerFormatterSink(
BinaryServerFormatterSink.Protocol.Other, this.NextChannelSink, channel);
if (channel != null) m_channel = channel;
if (Provider != null) m_Provider = Provider as HathiServerSinkProvider;
m_NextIServerChannelSink = new HathiServerChannelSink(Provider, channel, nextServer);
}
示例7: ServerTransportSink
public ServerTransportSink(IServerChannelSink nextSink)
{
// parameters validation
if (nextSink == null)
throw new ArgumentNullException("nextSink");
_nextSink = nextSink;
}
示例8: IpFixServerChannelSink
public IpFixServerChannelSink(IServerChannelSink nextSink, IEventLink eventLink)
{
if (nextSink == null)
throw new ArgumentNullException("nextSink");
_nextSink = nextSink;
_eventLink = eventLink;
}
示例9: CompressionServerChannelSink
/// <summary>
/// Constructor with properties.
/// </summary>
/// <param name="nextSink">Next sink.</param>
/// <param name="compressionThreshold">Compression threshold. If 0, compression is disabled globally.</param>
public CompressionServerChannelSink(
IServerChannelSink nextSink,
int compressionThreshold)
{
// Set the next sink.
_next = nextSink;
// Set the compression threshold.
_compressionThreshold = compressionThreshold;
}
示例10: SoapServerFormatterSink
public SoapServerFormatterSink(Protocol protocol, IServerChannelSink nextSink, IChannelReceiver receiver)
{
if (receiver == null)
{
throw new ArgumentNullException("receiver");
}
this._nextSink = nextSink;
this._protocol = protocol;
this._receiver = receiver;
}
示例11: ServerFormatterSink
public ServerFormatterSink(IWireFormatter formatter, IServerChannelSink nextSink)
{
// parameters validation
if (formatter == null)
throw new ArgumentNullException("formatter");
if (nextSink == null)
throw new ArgumentNullException("nextSink");
_formatter = formatter;
_nextSink = nextSink;
}
示例12: CompressionServerSink
public CompressionServerSink(
IServerChannelSink nextChannelSink_in,
bool mustDo_in
) {
#if DEBUG
Console.WriteLine("initiating compression sink");
#endif
this.mustdo_ = mustDo_in;
this.nextchannelsink_ = nextChannelSink_in;
}
示例13: SecureServerChannelSink
public SecureServerChannelSink(IServerChannelSink nextSink, string algorithm, double connectionAgeLimit, double sweeperFrequency, bool requireSecurity)
{
_algorithm = algorithm;
_connectionAgeLimit = connectionAgeLimit;
_sweepFrequency = sweeperFrequency;
_requireSecurity = requireSecurity;
_next = nextSink;
_connections = new Hashtable(103, 0.5F);
StartConnectionSweeper();
}
示例14: Pop
public object Pop (IServerChannelSink sink)
{
// Pops until the sink is found
while (_sinkStack != null)
{
ChanelSinkStackEntry stackEntry = _sinkStack;
_sinkStack = _sinkStack.Next;
if (stackEntry.Sink == sink) return stackEntry.State;
}
throw new RemotingException ("The current sink stack is empty, or the specified sink was never pushed onto the current stack");
}
示例15: EncryptionServerSink
public EncryptionServerSink(
IServerChannelSink nextChannelSink_in,
string keysPath_in,
bool mustDo_in
) {
#if DEBUG
Console.WriteLine("initiating encryption sink");
#endif
keyspath_ = keysPath_in;
mustdo_ = mustDo_in;
nextchannelsink_ = nextChannelSink_in;
}