Compartir a través de


IServerChannelSinkProvider.CreateSink(IChannelReceiver) Método

Definición

Crea una cadena de receptores.

public:
 System::Runtime::Remoting::Channels::IServerChannelSink ^ CreateSink(System::Runtime::Remoting::Channels::IChannelReceiver ^ channel);
public System.Runtime.Remoting.Channels.IServerChannelSink CreateSink (System.Runtime.Remoting.Channels.IChannelReceiver channel);
[System.Security.SecurityCritical]
public System.Runtime.Remoting.Channels.IServerChannelSink CreateSink (System.Runtime.Remoting.Channels.IChannelReceiver channel);
abstract member CreateSink : System.Runtime.Remoting.Channels.IChannelReceiver -> System.Runtime.Remoting.Channels.IServerChannelSink
[<System.Security.SecurityCritical>]
abstract member CreateSink : System.Runtime.Remoting.Channels.IChannelReceiver -> System.Runtime.Remoting.Channels.IServerChannelSink
Public Function CreateSink (channel As IChannelReceiver) As IServerChannelSink

Parámetros

channel
IChannelReceiver

Canal para el que se va a crear la cadena de receptores de canal.

Devoluciones

IServerChannelSink

El primer receptor de la cadena de receptores de canal recién formado o null, que indica que este proveedor no proporcionará o no proporciona ninguna conexión de este extremo.

Atributos

Excepciones

El llamador inmediato no tiene permisos de infraestructura.

Ejemplos

IServerChannelSink^ nextSink = nullptr;
if ( nextProvider != nullptr )
{
   Console::WriteLine( "The next server provider is:{0}", nextProvider );

   // Create a sink chain calling the 'SaopServerFormatterProvider'
   // 'CreateSink' method.
   nextSink = nextProvider->CreateSink( channel );
}

return gcnew MyServerChannelSink( nextSink );
IServerChannelSink nextSink = null;
if (nextProvider != null)
{
      Console.WriteLine("The next server provider is:"
                                       +nextProvider);
   // Create a sink chain calling the 'SaopServerFormatterProvider'
   // 'CreateSink' method.
   nextSink = nextProvider.CreateSink(channel);
}
return new MyServerChannelSink(nextSink);
Dim nextSink As IServerChannelSink = Nothing
If Not (nextProvider Is Nothing) Then
    Console.WriteLine("The next server provider is:" + CType(nextProvider,Object).ToString())
    ' Create a sink chain calling the 'SaopServerFormatterProvider'
    ' 'CreateSink' method.
    nextSink = nextProvider.CreateSink(channel)
End If
Return New MyServerChannelSink(nextSink)

Se aplica a