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.
Initializes a new instance of theclass with the specified configuration properties and sink.
Initializes a new instance of theclass with the specified name and sink.
Gets the name of the current channel.
Gets the priority of the current channel.
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 whether the client channel is secured.
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).)
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.)
Extracts the channel URI and the remote well-known object URI from the specified URL.
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.
To perform additional processing of messages on the client-side, you can specify an implementation of the IClientChannelSinkProvider through which all messages processed by the are passed.
By default, the HttpServerChannel uses a SOAP formatter to serialize all messages.
A RemotingConfiguration.Configure method) or programmatically (by passing a IDictionary collection to the HttpClientChannel 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 ato 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.