Implements a client channel for remote calls that uses the HTTP protocol to transmit messages.
Assembly: System.Runtime.Remoting (in System.Runtime.Remoting.dll)
Initializes a new instance of theclass.
|HttpChannel(IDictionary, IClientChannelSinkProvider, IServerChannelSinkProvider)|
Initializes a new instance of theclass with the specified configuration properties and sinks.
Initializes a new instance of theclass with a server channel that listens on the specified port.
Gets the channel-specific data.
Gets the name of the current channel.
Gets the priority of the current channel.
Gets the type of listener to hook into (for example, "http").
Gets the channel sink chain that the current channel is using.
Gets the number of properties associated with the channel object.(Inherited from BaseChannelObjectWithProperties.)
Gets a value that indicates whether the number of properties that can be entered into the channel object is fixed.(Inherited from BaseChannelObjectWithProperties.)
Gets a value that indicates whether the collection of properties in the channel object is read-only.(Inherited from BaseChannelObjectWithProperties.)
Gets or sets a Boolean value that indicates whether the current channel is secure.
Gets a value that indicates whether the dictionary of channel object properties is synchronized.(Inherited from BaseChannelObjectWithProperties.)
Returns the specified channel property.(Overrides BaseChannelObjectWithProperties.Item(Object).)
Gets a Boolean value that indicates whether the current instance wants to be hooked into the outside listener service.
Adds a URI on which the channel hook should listen.
Returns a value that indicates whether the channel object contains a property that is associated with the specified key.(Inherited from BaseChannelObjectWithProperties.)
|CreateMessageSink(String, Object, String)|
Returns a channel message sink that delivers messages to the specified URL or channel data object.
Determines whether the specified object is equal to the current object.(Inherited from Object.)
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)
Serves as the default hash function. (Inherited from Object.)
Returns an array of all the URLs for an object with the specified URI, hosted on the current.
Extracts the channel URI and the remote well-known object URI from the specified URL.
Instructs the current channel to start listening for requests.
Instructs the current channel to stop listening for requests.
Returns a string that represents the current object.(Inherited from Object.)
Overloaded. Enables parallelization of a query.(Defined by ParallelEnumerable.)
Channels transport messages across remoting boundaries (for example, between computers or application domains). Theclass transports messages using the HTTP protocol.
Channels are used by the .NET Framework remoting infrastructure to transport remote calls. When a client makes a call to a remote object, the call is serialized into a message that is sent by a client channel and received by a server channel. It is then deserialized and processed. Any returned values are transmitted by the server channel and received by the client channel.
A RemotingConfiguration.Configure method) or programmatically (by passing a IDictionary collection to the HttpChannel constructor). For a list of these configuration properties, see Channel and Formatter Configuration Properties.object has associated configuration properties that can be set at run time either in a configuration file (by invoking the static
The following code example shows how to use a HttpClientChannel to set up a remoting server and its client. The example contains three parts:
A remote object used by the server and the client
The following code example shows a server.
The following code example shows a client for this server.
The following code example shows the remote object used by the server and the client.
Available since 1.1
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Channel and Formatter Configuration Properties