Editare

Partajați prin


HttpChannel Constructors

Definition

Initializes a new instance of the HttpChannel class.

Overloads

HttpChannel()

Initializes a new instance of the HttpChannel class.

HttpChannel(Int32)

Initializes a new instance of the HttpChannel class with a server channel that listens on the specified port.

HttpChannel(IDictionary, IClientChannelSinkProvider, IServerChannelSinkProvider)

Initializes a new instance of the HttpChannel class with the specified configuration properties and sinks.

HttpChannel()

Initializes a new instance of the HttpChannel class.

public:
 HttpChannel();
public HttpChannel ();
Public Sub New ()

Remarks

The configuration properties of the HttpChannel instance returned by this constructor are all set to their default values.

Applies to

HttpChannel(Int32)

Initializes a new instance of the HttpChannel class with a server channel that listens on the specified port.

public:
 HttpChannel(int port);
public HttpChannel (int port);
new System.Runtime.Remoting.Channels.Http.HttpChannel : int -> System.Runtime.Remoting.Channels.Http.HttpChannel
Public Sub New (port As Integer)

Parameters

port
Int32

The port on which the server channel listens.

Remarks

When this constructor is used the default IClientChannelSinkProvider used is the SoapClientFormatterSinkProvider.

Applies to

HttpChannel(IDictionary, IClientChannelSinkProvider, IServerChannelSinkProvider)

Initializes a new instance of the HttpChannel class with the specified configuration properties and sinks.

public:
 HttpChannel(System::Collections::IDictionary ^ properties, System::Runtime::Remoting::Channels::IClientChannelSinkProvider ^ clientSinkProvider, System::Runtime::Remoting::Channels::IServerChannelSinkProvider ^ serverSinkProvider);
public HttpChannel (System.Collections.IDictionary properties, System.Runtime.Remoting.Channels.IClientChannelSinkProvider clientSinkProvider, System.Runtime.Remoting.Channels.IServerChannelSinkProvider serverSinkProvider);
new System.Runtime.Remoting.Channels.Http.HttpChannel : System.Collections.IDictionary * System.Runtime.Remoting.Channels.IClientChannelSinkProvider * System.Runtime.Remoting.Channels.IServerChannelSinkProvider -> System.Runtime.Remoting.Channels.Http.HttpChannel
Public Sub New (properties As IDictionary, clientSinkProvider As IClientChannelSinkProvider, serverSinkProvider As IServerChannelSinkProvider)

Parameters

properties
IDictionary

A IDictionary collection that specifies values for configuration properties to be used by the client and server channels.

clientSinkProvider
IClientChannelSinkProvider

The IClientChannelSinkProvider implementation to be used by the client channel.

serverSinkProvider
IServerChannelSinkProvider

The IServerChannelSinkProvider implementation to be used by the server channel.

Exceptions

A configuration property was incorrectly formatted.

Remarks

For more information about channel configuration properties, see Channel and Formatter Configuration Properties.

Channel sinks provide a plug-in point that allows access to the underlying messages flowing through the channel as well as the stream used by the transport mechanism to send messages to a remote object. Channel sinks are also responsible for transporting messages between the client and the server. Channel sinks are linked together in a chain, and all channel messages flow through this chain of sinks before the message is finally serialized and transported. If you do not require sink functionality, set the clientSinkProvider and serverSinkProvider parameters to null.

See also

Applies to