12 instantiations of ContextMessageProperty
System.ServiceModel (5)
System\ServiceModel\Channels\ClientContextProtocol.cs (1)
188ContextMessageProperty newContext = new ContextMessageProperty(context);
System\ServiceModel\Channels\ContextMessageHeader.cs (1)
118ContextMessageProperty result = new ContextMessageProperty();
System\ServiceModel\Channels\ContextMessageProperty.cs (2)
57ContextMessageProperty context = new ContextMessageProperty(); 123return new ContextMessageProperty(this.Context);
System\ServiceModel\Channels\ContextProtocol.cs (1)
114context = new ContextMessageProperty();
System.ServiceModel.Activities (4)
System\ServiceModel\Activities\Dispatcher\ControlOperationInvoker.cs (1)
541outgoingContextMessageProperty = new ContextMessageProperty();
System\ServiceModel\Activities\InternalSendMessage.cs (3)
1472contextMessageProperty = new ContextMessageProperty(instance.CorrelationCallbackContext.Context); 1481contextMessageProperty = new ContextMessageProperty(instance.CorrelationCallbackContext.Context); 1485contextMessageProperty = new ContextMessageProperty(instance.CorrelationContext.Context);
System.WorkflowServices (3)
System\ServiceModel\Dispatcher\DurableMessageDispatchInspector.cs (1)
76context = new ContextMessageProperty();
System\ServiceModel\Dispatcher\WorkflowOperationAsyncResult.cs (1)
312new ContextMessageProperty(this.outgoingContextProperties).AddOrReplaceInMessageProperties(OperationContext.Current.OutgoingMessageProperties);
System\Workflow\Runtime\Hosting\ChannelManagerService.cs (1)
172new ContextMessageProperty(logicalChannel.Context).AddOrReplaceInMessageProperties(OperationContext.Current.OutgoingMessageProperties);
70 references to ContextMessageProperty
System.ServiceModel (42)
System\ServiceModel\Channels\ClientContextProtocol.cs (16)
16ContextMessageProperty context; 32this.context = ContextMessageProperty.Empty; 86ContextMessageProperty incomingContext = null; 122ContextMessageProperty outgoingContext = null; 124if (ContextMessageProperty.TryGet(message, out outgoingContext)) 188ContextMessageProperty newContext = new ContextMessageProperty(context); 204void EnsureInvariants(bool isServerIssued, ContextMessageProperty newContext) 249string GetCookieHeaderFromContext(ContextMessageProperty contextMessageProperty) 261ContextMessageProperty GetCurrentContext() 263ContextMessageProperty result; 272result = ContextMessageProperty.Empty; 288ContextMessageProperty OnReceiveHttpCookies(Message message) 290ContextMessageProperty newContext = null; 320ContextMessageProperty OnReceiveSoapContextHeader(Message message) 322ContextMessageProperty messageProperty = ContextMessageHeader.GetContextFromHeaderIfExists(message); 336void OnSendHttpCookies(Message message, ContextMessageProperty context)
System\ServiceModel\Channels\ContextExchangeCorrelationHelper.cs (7)
33ContextMessageProperty contextProperties = null; 36if (ContextMessageProperty.TryGet(message, out contextProperties)) 38contextProperties.Context.TryGetValue(ContextMessageProperty.InstanceIdKey, out instanceId); 46ContextMessageProperty contextProperties = null; 49if (ContextMessageProperty.TryGet(operationContext.OutgoingMessageProperties, out contextProperties)) 51contextProperties.Context.TryGetValue(ContextMessageProperty.InstanceIdKey, out instanceId); 68context.TryGetValue(ContextMessageProperty.InstanceIdKey, out instanceId);
System\ServiceModel\Channels\ContextMessageHeader.cs (4)
48public static ContextMessageProperty GetContextFromHeaderIfExists(Message message) 59ContextMessageProperty context = ParseContextHeader(headers.GetReaderAtHeader(i)); 111internal static ContextMessageProperty ParseContextHeader(XmlReader reader) 118ContextMessageProperty result = new ContextMessageProperty();
System\ServiceModel\Channels\ContextMessageProperty.cs (7)
17static ContextMessageProperty empty; 51internal static ContextMessageProperty Empty 57ContextMessageProperty context = new ContextMessageProperty(); 65public static bool TryCreateFromHttpCookieHeader(string httpCookieHeader, out ContextMessageProperty context) 70public static bool TryGet(Message message, out ContextMessageProperty contextMessageProperty) 80public static bool TryGet(MessageProperties properties, out ContextMessageProperty contextMessageProperty) 90contextMessageProperty = value as ContextMessageProperty;
System\ServiceModel\Channels\ContextProtocol.cs (3)
40protected void OnSendSoapContextHeader(Message message, ContextMessageProperty context) 68public static string EncodeContextAsHttpSetCookieHeader(ContextMessageProperty context, Uri uri) 97public static bool TryCreateFromHttpCookieHeader(string httpCookieHeader, out ContextMessageProperty context)
System\ServiceModel\Channels\ServiceContextProtocol.cs (5)
55ContextMessageProperty messageContext; 56if (ContextMessageProperty.TryGet(message, out messageContext)) 95ContextMessageProperty messageContext; 106ContextMessageProperty messageContext = ContextMessageHeader.GetContextFromHeaderIfExists(message); 121void OnSendHttpCookies(Message message, ContextMessageProperty context, Uri requestUri)
System.ServiceModel.Activities (13)
System\ServiceModel\Activities\Dispatcher\ControlOperationInvoker.cs (4)
537ContextMessageProperty outgoingContextMessageProperty = null; 539if (!ContextMessageProperty.TryGet(thisPtr.operationContext.OutgoingMessageProperties, out outgoingContextMessageProperty)) 542outgoingContextMessageProperty.Context.Add(ContextMessageProperty.InstanceIdKey, Guid.NewGuid().ToString()); 547outgoingContextMessageProperty.Context[ContextMessageProperty.InstanceIdKey] = Guid.NewGuid().ToString();
System\ServiceModel\Activities\InternalReceiveMessage.cs (3)
39const string InstanceIdKey = ContextMessageProperty.InstanceIdKey; 1029ContextMessageProperty contextProperties = null; 1030if (ContextMessageProperty.TryGet(messageProperties, out contextProperties))
System\ServiceModel\Activities\InternalSendMessage.cs (4)
998ContextMessageProperty contextProperties = null; 999if (ContextMessageProperty.TryGet(instance.OperationContext.OutgoingMessageProperties, out contextProperties)) 1466ContextMessageProperty contextMessageProperty = null; 1509{ ContextMessageProperty.InstanceIdKey, contextValue }
System\ServiceModel\Activities\MessagingActivityHelper.cs (2)
205ContextMessageProperty contextMessageProperty; 206if (ContextMessageProperty.TryGet(messageProperties, out contextMessageProperty))
System.WorkflowServices (15)
AssemblyInfo.cs (1)
16[assembly: TypeForwardedTo(typeof(System.ServiceModel.Channels.ContextMessageProperty))]
System\ServiceModel\Activities\Description\WorkflowRuntimeEndpoint.cs (2)
52ContextMessageProperty contextMessageProperty; 53if (ContextMessageProperty.TryGet(operationContext.IncomingMessageProperties, out contextMessageProperty))
System\ServiceModel\Dispatcher\DurableInstanceContextProvider.cs (2)
200ContextMessageProperty contextProperties = null; 203if (ContextMessageProperty.TryGet(message, out contextProperties))
System\ServiceModel\Dispatcher\DurableMessageDispatchInspector.cs (3)
58ContextMessageProperty context = null; 62if (ContextMessageProperty.TryGet(reply, out context)) 74if (!ContextMessageProperty.TryGet(reply, out context))
System\ServiceModel\Dispatcher\WorkflowOperationAsyncResult.cs (4)
291ContextMessageProperty incomingContextProperties = null; 293&& ContextMessageProperty.TryGet(OperationContext.Current.IncomingMessageProperties, out incomingContextProperties)) 309ContextMessageProperty context; 310if (!ContextMessageProperty.TryGet(OperationContext.Current.OutgoingMessageProperties, out context))
System\Workflow\Activities\SendActivity.cs (1)
363logicalChannel.Context = ContextMessageProperty.Empty.Context;
System\Workflow\Runtime\Hosting\ChannelManagerService.cs (2)
249ContextMessageProperty contextMessageProperty; 252if (properties != null && ContextMessageProperty.TryGet(properties, out contextMessageProperty))