ClientRuntime Class
Microsoft Silverlight will reach end of support after October 2021. Learn more.
The insertion point for classes that extend the functionality of Silverlight client objects for all messages handled by a client application.
Inheritance Hierarchy
System.Object
System.ServiceModel.Dispatcher.ClientRuntime
Namespace: System.ServiceModel.Dispatcher
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Syntax
'Declaration
Public NotInheritable Class ClientRuntime
public sealed class ClientRuntime
The ClientRuntime type exposes the following members.
Properties
Name | Description | |
---|---|---|
ContractClientType | Gets the type of the contract associated with the client. | |
ContractName | Gets the name of the contract associated with the client. | |
ContractNamespace | Gets the namespace of the contract associated with the client. | |
ManualAddressing | Gets or sets a value that indicates whether the client adds addressing headers to request-reply messages. | |
MaxFaultSize | Gets or sets the maximum fault message size. | |
MessageInspectors | Gets a list of message inspector implementations for a client. | |
MessageVersionNoneFaultsEnabled | Gets or sets a value that indicates the message version none and faults are enabled. | |
Operations | Gets a collection of client operations for a client. | |
OperationSelector | Gets or sets a IClientOperationSelector implementation that can be used to select a ClientOperation. | |
UnhandledClientOperation | Gets the client operation for methods that do not have a corresponding ClientOperation in the Operations collection. | |
Via | Gets or sets the transport address that is used to send messages through the client. |
Top
Methods
Name | Description | |
---|---|---|
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Remarks
Silverlight client objects, whether an extension of ClientBase<TChannel> or of IClientChannel, are used by Silverlight client applications to convert method calls into outbound messages and convert incoming messages to objects and pass them to the results of client methods.
The ManualAddressing property enables an application to turn off some automatic addressing headers to directly control addressing.
The MaxFaultSize property enables the client to limit the size of fault messages that the client accepts.
The UnhandledClientOperation property returns the operation to which unexpected messages are passed.
The Via property sets the value of the destination of the message at the transport level to support intermediaries and other scenarios.
In addition, there are a number of other properties that retrieve the client contract information:
Version Information
Silverlight
Supported in: 5, 4, 3
Silverlight for Windows Phone
Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0
XNA Framework
Supported in: Windows Phone OS 7.0
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.