Search

Search:

Namespace:

Search Result
.

See the ReceiveActivityConversations for how to use the IContextManager interface.

.

http://msdn.microsoft.com/en-us/library/system.servicemodel.channels.icontextmanager.aspx

.
        Dim contextManager As IContextManager = _
.
        proxy.InnerChannel.GetProperty(Of IContextManager)()
.
        Dim contextManager As IContextManager = _
.
        proxy.InnerChannel.GetProperty(Of IContextManager)()
.

Basically what we need to do is retrieve the workflow instanceId from the context that is returned with the first call and save that. Next time we create a new proxy object we need to store the same instanceId in the request context before we actually use it and we are good to go Smile Setting the instaceId is actually done through a ClientContextProtocol object which is returned as an IContextManager inside of the channel properties. Check the bold lines in the previous code sample.

.

IContextManager contextManager = proxy.InnerChannel.GetProperty<IContextManager>();