ChannelServices.CreateServerChannelSinkChain Method (IServerChannelSinkProvider, IChannelReceiver)

 

Creates a channel sink chain for the specified channel.

Namespace:   System.Runtime.Remoting.Channels
Assembly:  mscorlib (in mscorlib.dll)

[SecurityCriticalAttribute]
public static IServerChannelSink CreateServerChannelSinkChain(
	IServerChannelSinkProvider provider,
	IChannelReceiver channel
)

Parameters

provider
Type: System.Runtime.Remoting.Channels.IServerChannelSinkProvider

The first provider in the chain of sink providers that will create the channel sink chain.

channel
Type: System.Runtime.Remoting.Channels.IChannelReceiver

The IChannelReceiver for which to create the channel sink chain.

Return Value

Type: System.Runtime.Remoting.Channels.IServerChannelSink

A new channel sink chain for the specified channel.

Exception Condition
SecurityException

The immediate caller does not have infrastructure permission.

SecurityPermission

For operating with infrastructure code. Demand value: SecurityAction.LinkDemand; Permission value: SecurityPermissionFlag.Infrastructure

.NET Framework
Available since 1.1
Return to top
Show: