CallbackContextMessageProperty Class

Definition

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

[System.Serializable]
public class CallbackContextMessageProperty : System.ServiceModel.Channels.IMessageProperty
Inheritance
CallbackContextMessageProperty
Attributes
Implements

Remarks

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

Constructors

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(EndpointAddress)

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

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

Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1