24 references to Context
System.ServiceModel (10)
System\ServiceModel\Channels\CallbackContextMessageProperty.cs (1)
212context = (contextHeader != null) ? ContextMessageHeader.ParseContextHeader(contextHeader.GetAddressHeaderReader()).Context : null;
System\ServiceModel\Channels\ClientContextProtocol.cs (2)
76return new Dictionary<string, string>(this.GetCurrentContext().Context); 251if (contextMessageProperty.Context.Count == 0)
System\ServiceModel\Channels\ContextExchangeCorrelationHelper.cs (2)
38contextProperties.Context.TryGetValue(ContextMessageProperty.InstanceIdKey, out instanceId); 51contextProperties.Context.TryGetValue(ContextMessageProperty.InstanceIdKey, out instanceId);
System\ServiceModel\Channels\ContextMessageHeader.cs (1)
140result.Context[propertyName] = reader.ReadElementString();
System\ServiceModel\Channels\ContextMessageProperty.cs (1)
123return new ContextMessageProperty(this.Context);
System\ServiceModel\Channels\ContextProtocol.cs (3)
51if (context.Context.Count > 0) 53message.Headers.Add(new ContextMessageHeader(context.Context)); 83ContextMessageHeader contextHeader = new ContextMessageHeader(context.Context);
System.ServiceModel.Activities (5)
System\ServiceModel\Activities\Dispatcher\ControlOperationInvoker.cs (2)
542outgoingContextMessageProperty.Context.Add(ContextMessageProperty.InstanceIdKey, Guid.NewGuid().ToString()); 547outgoingContextMessageProperty.Context[ContextMessageProperty.InstanceIdKey] = Guid.NewGuid().ToString();
System\ServiceModel\Activities\InternalReceiveMessage.cs (2)
1032if (contextProperties.Context != null) 1035if (contextProperties.Context.TryGetValue(InstanceIdKey, out instanceId))
System\ServiceModel\Activities\MessagingActivityHelper.cs (1)
209context = contextMessageProperty.Context;
System.WorkflowServices (9)
System\ServiceModel\Activities\Description\WorkflowRuntimeEndpoint.cs (1)
56if (contextMessageProperty.Context.TryGetValue("instanceId", out stringInstanceId))
System\ServiceModel\Dispatcher\DurableInstanceContextProvider.cs (1)
205if (contextProperties.Context.TryGetValue(WellKnownContextProperties.InstanceId, out instanceId))
System\ServiceModel\Dispatcher\DurableMessageDispatchInspector.cs (3)
64context.Context.Clear(); 77context.Context[WellKnownContextProperties.InstanceId] = newInstanceId; 82context.Context[WellKnownContextProperties.InstanceId] = newInstanceId;
System\ServiceModel\Dispatcher\WorkflowOperationAsyncResult.cs (2)
295return incomingContextProperties.Context; 318context.Context[contextElement.Key] = contextElement.Value;
System\Workflow\Activities\SendActivity.cs (1)
363logicalChannel.Context = ContextMessageProperty.Empty.Context;
System\Workflow\Runtime\Hosting\ChannelManagerService.cs (1)
254logicalChannel.Context = contextMessageProperty.Context;