Compartir vía


IpcServerChannel Constructores

Definición

Inicializa una nueva instancia de la clase IpcServerChannel.

Sobrecargas

Nombre Description
IpcServerChannel(String)

Inicializa una nueva instancia de la IpcServerChannel clase con el nombre de puerto IPC especificado.

IpcServerChannel(IDictionary, IServerChannelSinkProvider)

Inicializa una nueva instancia de la IpcServerChannel clase con las propiedades del canal y el receptor especificados.

IpcServerChannel(String, String)

Inicializa una nueva instancia de la IpcServerChannel clase con el nombre de canal y el nombre del puerto IPC especificados.

IpcServerChannel(IDictionary, IServerChannelSinkProvider, CommonSecurityDescriptor)

Inicializa una nueva instancia de la IpcServerChannel clase con las propiedades del canal, el receptor y el descriptor de seguridad especificados.

IpcServerChannel(String, String, IServerChannelSinkProvider)

Inicializa una nueva instancia de la IpcServerChannel clase con el nombre de canal especificado, el nombre del puerto IPC y el receptor.

IpcServerChannel(String)

Inicializa una nueva instancia de la IpcServerChannel clase con el nombre de puerto IPC especificado.

public:
 IpcServerChannel(System::String ^ portName);
public IpcServerChannel(string portName);
new System.Runtime.Remoting.Channels.Ipc.IpcServerChannel : string -> System.Runtime.Remoting.Channels.Ipc.IpcServerChannel
Public Sub New (portName As String)

Parámetros

portName
String

Nombre del puerto IPC que va a usar el canal.

Ejemplos

En el ejemplo de código siguiente se muestra cómo usar este constructor.

// Create and register an IPC channel
IpcServerChannel^ serverChannel = gcnew IpcServerChannel( L"remote" );
ChannelServices::RegisterChannel( serverChannel );
// Create and register an IPC channel
IpcServerChannel serverChannel = new IpcServerChannel("remote");
ChannelServices.RegisterChannel(serverChannel);

Se aplica a

IpcServerChannel(IDictionary, IServerChannelSinkProvider)

Inicializa una nueva instancia de la IpcServerChannel clase con las propiedades del canal y el receptor especificados.

public:
 IpcServerChannel(System::Collections::IDictionary ^ properties, System::Runtime::Remoting::Channels::IServerChannelSinkProvider ^ sinkProvider);
public IpcServerChannel(System.Collections.IDictionary properties, System.Runtime.Remoting.Channels.IServerChannelSinkProvider sinkProvider);
new System.Runtime.Remoting.Channels.Ipc.IpcServerChannel : System.Collections.IDictionary * System.Runtime.Remoting.Channels.IServerChannelSinkProvider -> System.Runtime.Remoting.Channels.Ipc.IpcServerChannel
Public Sub New (properties As IDictionary, sinkProvider As IServerChannelSinkProvider)

Parámetros

properties
IDictionary

Colección IDictionary que especifica valores para las propiedades de configuración que va a usar el canal.

sinkProvider
IServerChannelSinkProvider

Implementación IServerChannelSinkProvider que va a usar el canal.

Ejemplos

En el ejemplo de código siguiente se muestra cómo usar este constructor.

// Create the server channel.
System::Collections::IDictionary^ properties = gcnew System::Collections::Hashtable;
properties->default[ L"name" ] = L"ipc";
properties->default[ L"priority" ] = L"20";
properties->default[ L"portName" ] = L"localhost:9090";
IpcServerChannel^ serverChannel = gcnew IpcServerChannel( properties, nullptr );
// Create the server channel.
System.Collections.IDictionary properties =
    new System.Collections.Hashtable();
properties["name"] = "ipc";
properties["priority"] = "20";
properties["portName"] = "localhost:9090";
IpcServerChannel serverChannel =
    new IpcServerChannel(properties, null);

Comentarios

Para obtener más información sobre las propiedades de configuración del canal, vea Propiedades de configuración de canal y formateador.

Si no necesita funcionalidad de receptor, establezca el sinkProvider parámetro nullen .

Precaución

Al establecer la exclusiveAddressUse propiedad false en en en el properties argumento , se pueden registrar varios IpcServerChannel objetos para la misma canalización con nombre. En tal caso, las solicitudes pueden ir a cualquiera de los canales registrados. Esta configuración solo se considera segura si también se usan NIC.

Consulte también

Se aplica a

IpcServerChannel(String, String)

Inicializa una nueva instancia de la IpcServerChannel clase con el nombre de canal y el nombre del puerto IPC especificados.

public:
 IpcServerChannel(System::String ^ name, System::String ^ portName);
public IpcServerChannel(string name, string portName);
new System.Runtime.Remoting.Channels.Ipc.IpcServerChannel : string * string -> System.Runtime.Remoting.Channels.Ipc.IpcServerChannel
Public Sub New (name As String, portName As String)

Parámetros

name
String

Nombre del canal.

portName
String

Nombre del puerto IPC que va a usar el canal.

Ejemplos

En el ejemplo de código siguiente se muestra cómo usar este constructor.

// Create the server channel.
String^ name = L"ipc";
String^ portName = L"localhost:9090";
IpcServerChannel^ serverChannel = gcnew IpcServerChannel( name,portName );
// Create the server channel.
string name = "ipc";
string portName = "localhost:9090";
IpcServerChannel serverChannel =
    new IpcServerChannel(name, portName);

Comentarios

Este constructor establece la ChannelName propiedad mediante el name parámetro . Si desea registrar más de un canal, cada canal debe tener un nombre único.

Se aplica a

IpcServerChannel(IDictionary, IServerChannelSinkProvider, CommonSecurityDescriptor)

Inicializa una nueva instancia de la IpcServerChannel clase con las propiedades del canal, el receptor y el descriptor de seguridad especificados.

public:
 IpcServerChannel(System::Collections::IDictionary ^ properties, System::Runtime::Remoting::Channels::IServerChannelSinkProvider ^ sinkProvider, System::Security::AccessControl::CommonSecurityDescriptor ^ securityDescriptor);
public IpcServerChannel(System.Collections.IDictionary properties, System.Runtime.Remoting.Channels.IServerChannelSinkProvider sinkProvider, System.Security.AccessControl.CommonSecurityDescriptor securityDescriptor);
new System.Runtime.Remoting.Channels.Ipc.IpcServerChannel : System.Collections.IDictionary * System.Runtime.Remoting.Channels.IServerChannelSinkProvider * System.Security.AccessControl.CommonSecurityDescriptor -> System.Runtime.Remoting.Channels.Ipc.IpcServerChannel
Public Sub New (properties As IDictionary, sinkProvider As IServerChannelSinkProvider, securityDescriptor As CommonSecurityDescriptor)

Parámetros

properties
IDictionary

Colección IDictionary que especifica valores para las propiedades de configuración que va a usar el canal.

sinkProvider
IServerChannelSinkProvider

Implementación IServerChannelSinkProvider que va a usar el canal.

securityDescriptor
CommonSecurityDescriptor

que CommonSecurityDescriptor va a usar el canal.

Comentarios

Para obtener más información sobre las propiedades de configuración del canal, vea Propiedades de configuración de canal y formateador.

Si no necesita funcionalidad de receptor, establezca el sinkProvider parámetro nullen . Si no necesita un descriptor de seguridad, establezca el securityDescriptor parámetro nullen .

Precaución

Al establecer la exclusiveAddressUse propiedad false en en en el properties argumento , se pueden registrar varios IpcServerChannel objetos para la misma canalización con nombre. En tal caso, las solicitudes pueden ir a cualquiera de los canales registrados. Esta configuración solo se considera segura si también se usan NIC.

Consulte también

Se aplica a

IpcServerChannel(String, String, IServerChannelSinkProvider)

Inicializa una nueva instancia de la IpcServerChannel clase con el nombre de canal especificado, el nombre del puerto IPC y el receptor.

public:
 IpcServerChannel(System::String ^ name, System::String ^ portName, System::Runtime::Remoting::Channels::IServerChannelSinkProvider ^ sinkProvider);
public IpcServerChannel(string name, string portName, System.Runtime.Remoting.Channels.IServerChannelSinkProvider sinkProvider);
new System.Runtime.Remoting.Channels.Ipc.IpcServerChannel : string * string * System.Runtime.Remoting.Channels.IServerChannelSinkProvider -> System.Runtime.Remoting.Channels.Ipc.IpcServerChannel
Public Sub New (name As String, portName As String, sinkProvider As IServerChannelSinkProvider)

Parámetros

name
String

Nombre del canal.

portName
String

Nombre del puerto IPC que va a usar el canal.

sinkProvider
IServerChannelSinkProvider

Implementación IServerChannelSinkProvider que va a usar el canal.

Ejemplos

En el ejemplo de código siguiente se muestra cómo usar este constructor.

// Create the server channel.
String^ name = L"ipc";
String^ portName = L"localhost:9090";
IServerChannelSinkProvider^ sinkProvider = nullptr;
IpcServerChannel^ serverChannel = gcnew IpcServerChannel( name,portName,sinkProvider );
// Create the server channel.
string name = "ipc";
string portName = "localhost:9090";
IServerChannelSinkProvider sinkProvider = null;
IpcServerChannel serverChannel =
    new IpcServerChannel(name, portName, sinkProvider);

Comentarios

Este constructor establece la ChannelName propiedad mediante el name parámetro . Si desea registrar más de un canal, cada canal debe tener un nombre único.

Si no necesita funcionalidad de receptor, establezca el sinkProvider parámetro nullen .

Se aplica a