CallbackContextMessageProperty Class

Definition

Represents the contents of the wsc:CallbackContext message header when using a channel that supports the context exchange protocol.

public ref class CallbackContextMessageProperty : System::ServiceModel::Channels::IMessageProperty
[System.Serializable]
public class CallbackContextMessageProperty : System.ServiceModel.Channels.IMessageProperty
[<System.Serializable>]
type CallbackContextMessageProperty = class
    interface IMessageProperty
Public Class CallbackContextMessageProperty
Implements IMessageProperty
Inheritance
CallbackContextMessageProperty
Attributes
Implements

Remarks

The context exchange protocol allows for duplex communication between durable services.

Constructors

CallbackContextMessageProperty(EndpointAddress)

Initializes a new instance of the CallbackContextMessageProperty class with the specified EndpointAddress.

CallbackContextMessageProperty(EndpointAddress, IDictionary<String,String>)

Initializes a new instance of the CallbackContextMessageProperty class with the specified EndpointAddress and a IDictionary<TKey,TValue> that contains context information.

CallbackContextMessageProperty(IDictionary<String,String>)

Initializes a new instance of the CallbackContextMessageProperty class with the specified context.

CallbackContextMessageProperty(String, IDictionary<String,String>)

Initializes a new instance of the CallbackContextMessageProperty class with the specified listen address and context information.

CallbackContextMessageProperty(Uri, IDictionary<String,String>)

Initializes a new instance of the CallbackContextMessageProperty class with the specified listen address and context information.

Properties

CallbackAddress

Gets the callback address.

Context

Gets the context associated with the CallbackContextMessageProperty.

Name

Gets the property name for the CallbackContextMessageProperty class.

Methods

AddOrReplaceInMessage(Message)

Adds or replaces the current CallbackContextMessageProperty instance within the specified message.

AddOrReplaceInMessageProperties(MessageProperties)

Adds or replaces the current CallbackContextMessageProperty instance within the specified message properties collection.

CreateCallbackAddress(Uri)

Merges the client's listenAddress and its context into a single callback address that is sent to the service.

CreateCopy()

Creates a copy of the CallbackContextMessageProperty instance.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetListenAddressAndContext(EndpointAddress, IDictionary<String,String>)

Gets the listen address and context data from the CallbackContextMessageProperty instance.

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)
TryGet(Message, CallbackContextMessageProperty)

Attempts to get a CallbackContextMessageProperty instance from the specified message.

TryGet(MessageProperties, CallbackContextMessageProperty)

Attempts to get a CallbackContextMessageProperty instance from the specified message properties.

Applies to