IServerChannelSinkProvider.CreateSink(IChannelReceiver) Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Crea una catena di sink.
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
Parametri
- channel
- IChannelReceiver
Canale per il quale creare la catena di sink del canale.
Valori restituiti
Primo sink della catena di sink del canale appena formato o null, che indica che questo provider non fornirà o non può fornire una connessione per questo endpoint.
- Attributi
Eccezioni
Il chiamante immediato non dispone dell'autorizzazione dell'infrastruttura.
Esempio
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)