ClientRuntime Class

ClientRuntime Class

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

The insertion point for classes that extend the functionality of Windows Phone client objects for all messages handled by a client application.

System::Object
  System.ServiceModel.Dispatcher::ClientRuntime

Namespace:  System.ServiceModel.Dispatcher
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

No code example is currently available or this language may not be supported.

The ClientRuntime type exposes the following members.

  NameDescription
Public propertyContractClientTypeGets the type of the contract associated with the client.
Public propertyContractNameGets the name of the contract associated with the client.
Public propertyContractNamespaceGets the namespace of the contract associated with the client.
Public propertyManualAddressingGets or sets a value that indicates whether the client adds addressing headers to request-reply messages.
Public propertyMaxFaultSizeGets or sets the maximum fault message size.
Public propertyOperationSelectorGets or sets a IClientOperationSelector implementation that can be used to select a ClientOperation.
Public propertyUnhandledClientOperationGets the client operation for methods that do not have a corresponding ClientOperation.
Public propertyViaGets or sets the transport address that is used to send messages through the client.
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

Windows Phone client objects, whether an extension of ClientBase<TChannel> or of IClientChannel, are used by Windows Phone 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:

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Show:
© 2017 Microsoft