9 overrides of Headers
System.ServiceModel (7)
System\ServiceModel\Channels\BinaryMessageEncoder.cs (1)
1665public override MessageHeaders Headers
System\ServiceModel\Channels\ContentOnlyMessage.cs (1)
25public override MessageHeaders Headers
System\ServiceModel\Channels\DelegatingMessage.cs (1)
35public override MessageHeaders Headers
System\ServiceModel\Channels\Message.cs (3)
1021public override MessageHeaders Headers 1351public override MessageHeaders Headers 1567public override MessageHeaders Headers
System\ServiceModel\Security\ImpersonatingMessage.cs (1)
36public override MessageHeaders Headers
System.ServiceModel.Channels (1)
System\ServiceModel\Channels\ByteStreamMessage.cs (1)
173public override MessageHeaders Headers
System.ServiceModel.Web (1)
System\ServiceModel\Channels\HttpStreamMessage.cs (1)
44public override MessageHeaders Headers
432 references to Headers
System.ServiceModel (386)
System\ServiceModel\ActionMismatchAddressingException.cs (1)
51phf.AddHeaders(message.Headers);
System\ServiceModel\Channels\AddressHeaderCollection.cs (1)
74message.Headers.Add(this[i].ToMessageHeader());
System\ServiceModel\Channels\ChannelDemuxer.cs (2)
637new EndpointNotFoundException(SR.GetString(SR.UnableToDemuxChannel, message.Headers.Action)), message); 2290throw TraceUtility.ThrowHelperError(new EndpointNotFoundException(SR.GetString(SR.UnableToDemuxChannel, message.Headers.Action)), message);
System\ServiceModel\Channels\ClientContextProtocol.cs (3)
109if (message.Headers.FindHeader(CallbackContextMessageHeader.CallbackContextHeaderName, CallbackContextMessageHeader.CallbackContextHeaderNamespace) != -1) 111throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new ProtocolException(SR.GetString(SR.CallbackContextNotExpectedOnIncomingMessageAtClient, message.Headers.Action, CallbackContextMessageHeader.CallbackContextHeaderName, CallbackContextMessageHeader.CallbackContextHeaderNamespace))); 176message.Headers.Add(new CallbackContextMessageHeader(callbackAddress, message.Version.Addressing));
System\ServiceModel\Channels\ContextMessageHeader.cs (2)
55int i = message.Headers.FindHeader(ContextHeaderName, ContextHeaderNamespace); 58MessageHeaders headers = message.Headers;
System\ServiceModel\Channels\ContextProtocol.cs (1)
53message.Headers.Add(new ContextMessageHeader(context.Context));
System\ServiceModel\Channels\DelegatingMessage.cs (1)
37get { return this.innerMessage.Headers; }
System\ServiceModel\Channels\HttpChannelFactory.cs (1)
818Uri toHeader = message.Headers.To;
System\ServiceModel\Channels\HttpChannelHelpers.cs (17)
260actionAbsent = (message.Headers.Action == null); 280toAbsent = (message.Headers.To == null); 296message.Headers.To = message.Properties.Via; 334message.Headers.Action = action; 340if (action.Length > 0 && string.Compare(message.Headers.Action, action, StringComparison.Ordinal) != 0) 343message.Headers.Action, action), message.Headers.Action, action); 1240string action = message.Headers.Action; 1246message.Properties.Add(AddressingProperty.Name, new AddressingProperty(message.Headers)); 1249message.Headers.Action = null; 1250message.Headers.To = null; 1372string action = message.Headers.Action; 1378message.Properties.Add(AddressingProperty.Name, new AddressingProperty(message.Headers)); 1381message.Headers.Action = null; 1382message.Headers.To = null; 1441if (message.Headers.MessageId == null) 2511string action = message.Headers.Action;
System\ServiceModel\Channels\HttpRequestContext.cs (7)
208if (message.Headers.MessageId == null && 270if (message.Headers.To == null || 272!listener.AnonymousUriPrefixMatcher.IsAnonymousUri(message.Headers.To)) 274message.Headers.To = message.Version.Addressing.AnonymousUri; 280if (message.Headers.To != null && 282!listener.AnonymousUriPrefixMatcher.IsAnonymousUri(message.Headers.To))) 284message.Headers.To = null;
System\ServiceModel\Channels\HttpRequestMessageExtensionMethods.cs (1)
147properties[MessageHeadersPropertyKey] = message.Headers;
System\ServiceModel\Channels\InternalDuplexChannelFactory.cs (4)
234for (int i = 0; i < message.Headers.Count; i++) 236if (message.Headers[i].Name == XD.UtilityDictionary.UniqueEndpointHeaderName.Value && 237message.Headers[i].Namespace == XD.UtilityDictionary.UniqueEndpointHeaderNamespace.Value) 239message.Headers.AddUnderstood(i);
System\ServiceModel\Channels\InternalDuplexChannelListener.cs (1)
267to = message.Headers.To;
System\ServiceModel\Channels\Message.cs (6)
308MessageHeaders headers = this.Headers; 372UniqueId requestMessageID = request.Headers.MessageId; 375Headers.RelatesTo = requestMessageID; 532MessageHeaders headers = this.Headers; 725MessageHeaders headers = this.Headers; 762MessageHeaders headers = Headers;
System\ServiceModel\Channels\MessageBuffer.cs (7)
95understoodHeaders = new bool[message.Headers.Count]; 97understoodHeaders[i] = message.Headers.IsUnderstood(i); 102this.to = message.Headers.To; 103this.action = message.Headers.Action; 157msg.Headers.AddUnderstood(i); 162msg.Headers.To = this.to; 167msg.Headers.Action = this.action;
System\ServiceModel\Channels\MessageHeaders.cs (2)
481CopyHeaderFrom(message.Headers, headerIndex); 528CopyHeadersFrom(message.Headers);
System\ServiceModel\Channels\MsmqDecodeHelper.cs (1)
400message.Headers.To = listener.Uri;
System\ServiceModel\Channels\MsmqDiagnostics.cs (1)
215UniqueId indigoId = message.Headers.MessageId;
System\ServiceModel\Channels\OneWayChannelFactory.cs (3)
23int index = message.Headers.FindHeader(DotNetOneWayStrings.HeaderName, DotNetOneWayStrings.Namespace); 30message.Headers.Add(header); 45int index = message.Headers.FindHeader(
System\ServiceModel\Channels\PeerDuplexChannel.cs (1)
203Fx.Assert(message.Headers.Action != message.Version.Addressing.DefaultFaultAction, "fault action in duplex.send");
System\ServiceModel\Channels\PeerFlooder.cs (5)
268fmessage.Headers.ReplaceAt(index, hopHeader); 320index = message.Headers.FindHeader(PeerStrings.HopCountElementName, PeerStrings.HopCountElementNamespace); 323currentValue = PeerMessageHelpers.GetHeaderULong(message.Headers, index); 379message.Headers.To = message.Properties.Via = via; 584System.Xml.UniqueId messageId = PeerMessageHelpers.GetHeaderUniqueId(message.Headers, PeerStrings.MessageId, PeerStrings.Namespace);
System\ServiceModel\Channels\PeerHelpers.cs (6)
782int i = message.Headers.FindHeader(SecurityJan2004Strings.Security, SecurityJan2004Strings.Namespace); 785message.Headers.AddUnderstood(i); 792string action = message.Headers.Action; 805demux = PeerMessageHelpers.GetHeaderString(message.Headers, PeerOperationNames.Flood, PeerStrings.Namespace); 806via = PeerMessageHelpers.GetHeaderUri(message.Headers, PeerStrings.Via, PeerStrings.Namespace); 807to = PeerMessageHelpers.GetHeaderUri(message.Headers, PeerOperationNames.PeerTo, PeerStrings.Namespace);
System\ServiceModel\Channels\PeerNodeImplementation.cs (19)
348if (-1 != message.Headers.FindHeader(PeerStrings.MessageId, PeerStrings.Namespace)) 350if (-1 != message.Headers.FindHeader(PeerOperationNames.PeerTo, PeerStrings.Namespace)) 352if (-1 != message.Headers.FindHeader(PeerOperationNames.PeerVia, PeerStrings.Namespace)) 354if (-1 != message.Headers.FindHeader(PeerOperationNames.Flood, PeerStrings.Namespace, PeerOperationNames.Demuxer)) 357message.Headers.Add(PeerDictionaryHeader.CreateMessageIdHeader(messageId)); 359message.Headers.Add(MessageHeader.CreateHeader(PeerOperationNames.PeerTo, PeerStrings.Namespace, message.Headers.To)); 360message.Headers.Add(PeerDictionaryHeader.CreateViaHeader(via)); 361message.Headers.Add(PeerDictionaryHeader.CreateFloodRole()); 454int i = msg.Headers.FindHeader(SecurityJan2004Strings.Security, SecurityJan2004Strings.Namespace); 457msg.Headers.AddUnderstood(i); 461DeliverMessageToClientChannels(registrant, clientBuffer, via, message.Headers.To, contentType, messageSize, -1, null); 881throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.PeerMessageMustHaveVia, message.Headers.Action))); 920throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.PeerMessageMustHaveVia, message.Headers.Action))); 1439Fx.Assert(message.Headers.To == to, "To Header is inconsistent in Send() case!"); 1478localCopy.Headers.To = to; 1482int i = localCopy.Headers.FindHeader(SecurityJan2004Strings.Security, SecurityJan2004Strings.Namespace); 1485localCopy.Headers.AddUnderstood(i); 1503localCopy.Headers.ReplaceAt(index, hopHeader);
System\ServiceModel\Channels\PeerSecurityHelpers.cs (2)
157int i = request.Headers.FindHeader(SecurityJan2004Strings.Security, SecurityJan2004Strings.Namespace); 160request.Headers.AddUnderstood(i);
System\ServiceModel\Channels\PeerService.cs (1)
177OperationContext.Current.IncomingMessage.Headers.Action);
System\ServiceModel\Channels\ReliableMessagingHelpers.cs (10)
1483request.Headers.Insert(0, this.messageHeader); 1488request.Headers.MessageId = this.messageId; 1495request.Headers.ReplyTo = null; 1499request.Headers.ReplyTo = address; 1503request.Headers.ReplyTo = address.IsAnonymous ? null : address; 3076message.Headers.Insert(0, 3083message.Headers.Insert(0, new WsrmAckRequestedHeader(reliableMessagingVersion, id)); 3089message.Headers.Insert(0, 3135message.Headers.RelatesTo = messageId; 3327message.Headers.RelatesTo = messageId;
System\ServiceModel\Channels\ReplyAdapterChannelListener.cs (1)
220replyTo = request.Headers.ReplyTo;
System\ServiceModel\Channels\RequestReplyCorrelator.cs (9)
25UniqueId messageId = request.Headers.MessageId; 78UniqueId relatesTo = reply.Headers.RelatesTo; 132MessageHeaders requestHeaders = request.Headers; 151MessageHeaders replyHeaders = reply.Headers; 166UniqueId messageId = request.Headers.MessageId; 170MessageHeaders replyHeaders = reply.Headers; 192this.faultTo = message.Headers.FaultTo; 193this.replyTo = message.Headers.ReplyTo; 196this.from = message.Headers.From;
System\ServiceModel\Channels\SecurityChannelListener.cs (5)
789if (message.Headers.Action == this.secureConversationCloseAction) 1113if (unverifiedMessage.Headers.MessageId != null) 1292if (requestMessage.Headers.MessageId != null) 1847if (requestMessage.Headers.MessageId != null) 1935if (innerItem.Headers.MessageId != null)
System\ServiceModel\Channels\ServiceChannel.cs (12)
621MessageHeaders headers = rpc.Request.Headers; 994if ((operation.ReplyAction != MessageHeaders.WildcardAction) && !rpc.Reply.IsFault && rpc.Reply.Headers.Action != null) 996if (String.CompareOrdinal(operation.ReplyAction, rpc.Reply.Headers.Action) != 0) 1000rpc.Reply.Headers.Action, 1009string action = rpc.Reply.Headers.Action; 1253if (!context.OutgoingMessageVersion.IsMatch(message.Headers.MessageVersion)) 1256SR.GetString(SR.SFxVersionMismatchInOperationContextAndMessage2, context.OutgoingMessageVersion, message.Headers.MessageVersion) 1262message.Headers.CopyHeadersFrom(context.OutgoingMessageHeaders); 1281this.Call(message.Headers.Action, true, operation, new object[] { message }, EmptyArray<object>.Instance, timeout); 1292return this.BeginCall(message.Headers.Action, true, operation, new object[] { message }, timeout, callback, state); 1308return (Message)this.Call(message.Headers.Action, false, operation, new object[] { message }, EmptyArray<object>.Instance, timeout); 1319return this.BeginCall(message.Headers.Action, false, operation, new object[] { message }, timeout, callback, state);
System\ServiceModel\Channels\ServiceContextProtocol.cs (4)
38int headerIndex = message.Headers.FindHeader(CallbackContextMessageHeader.CallbackContextHeaderName, CallbackContextMessageHeader.CallbackContextHeaderNamespace); 41CallbackContextMessageProperty property = CallbackContextMessageHeader.ParseCallbackContextHeader(message.Headers.GetReaderAtHeader(headerIndex), message.Version.Addressing); 69requestUri = requestContext.RequestMessage.Headers.To; 82throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(SR.GetString(SR.CallbackContextNotExpectedOnOutgoingMessageAtServer, message.Headers.Action)));
System\ServiceModel\Channels\TransactionChannel.cs (3)
157TransactionFlowOption txFlowOption = this.factory.GetTransaction(direction, message.Headers.Action); 166TransactionFlowOption txFlowOption = this.factory.GetTransaction(direction, message.Headers.Action); 207message.Headers.Add(header);
System\ServiceModel\Channels\TransactionChannelFaultConverter.cs (2)
23if (message.Headers.Action == FaultCodeConstants.Actions.Transactions) 32if (MessageFault.WasHeaderNotUnderstood(message.Headers, header.Name, header.Namespace))
System\ServiceModel\Channels\TransactionChannelListener.cs (1)
546System.ServiceModel.Channels.RequestReplyCorrelator.PrepareReply(reply, message.Headers.MessageId);
System\ServiceModel\Channels\TransportOutputChannel.cs (1)
111message.Headers.SetToHeader(toHeader);
System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (3)
996if (message.Version.Addressing == AddressingVersion.None && message.Headers.Action == null) 1000message.Headers.Action = WebSocketTransportSettings.BinaryMessageReceivedAction; 1006message.Headers.Action = WebSocketTransportSettings.TextMessageReceivedAction;
System\ServiceModel\Channels\WsrmFault.cs (5)
381message.Headers.Add(header); 418string subcodeName = WsrmSequenceFaultHeader.GetSubcode(message.Headers.GetReaderAtHeader(index), 433detailNamespace, message.Headers.GetReaderAtHeader(index), reliableMessagingVersion); 445message.Headers.UnderstoodHeaders.Add(message.Headers[index]);
System\ServiceModel\Channels\WsrmMessageInfo.cs (3)
242MessageHeaders headers = message.Headers; 669Collection<MessageHeaderInfo> notUnderstoodHeaders = message.Headers.GetHeadersNotUnderstood(); 928info.to = message.Headers.To;
System\ServiceModel\ComIntegration\ComPlusDiagnosticTraceRecords.cs (4)
141if (message.Headers.From != null) 142from = message.Headers.From.Uri; 155if (message.Headers.From != null) 156from = message.Headers.From.Uri;
System\ServiceModel\ComIntegration\ComPlusInstanceProvider.cs (2)
101if (message.Headers.From != null) 102from = message.Headers.From.Uri;
System\ServiceModel\ComIntegration\ComPlusThreadInitializer.cs (3)
100if (message.Headers.From != null) 101from = message.Headers.From.Uri; 105action = message.Headers.Action;
System\ServiceModel\Description\ServiceMetadataExtension.cs (3)
494if (request.Headers.To == null) 498requestHost = request.Headers.To.Host; 499requestPort = request.Headers.To.Port;
System\ServiceModel\Description\TypedMessageConverter.cs (4)
105Fx.Assert(message.Headers != null, ""); 106if (this.Action != null && message.Headers.Action != null && message.Headers.Action != this.Action) 107throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SFxActionMismatch, this.Action, message.Headers.Action)));
System\ServiceModel\Diagnostics\ActivityIdHeader.cs (9)
40if (message != null && message.State != MessageState.Closed && message.Headers != null) 42int index = message.Headers.FindHeader(DiagnosticStrings.ActivityId, DiagnosticStrings.DiagnosticsNamespace); 47using (XmlDictionaryReader reader = message.Headers.GetReaderAtHeader(index)) 82if (message.State != MessageState.Closed && message.Headers != null) 84int index = message.Headers.FindHeader(DiagnosticStrings.ActivityId, DiagnosticStrings.DiagnosticsNamespace); 89using (XmlDictionaryReader reader = message.Headers.GetReaderAtHeader(index)) 120if (message.State != MessageState.Closed && message.Headers.MessageVersion.Envelope != EnvelopeVersion.None) 122int index = message.Headers.FindHeader(DiagnosticStrings.ActivityId, DiagnosticStrings.DiagnosticsNamespace); 125message.Headers.Add(this);
System\ServiceModel\Diagnostics\EventTraceActivityHelper.cs (2)
58UniqueId uid = message.Headers.RelatesTo; 97UniqueId uniqueId = message.Headers.MessageId;
System\ServiceModel\Diagnostics\MessageLogger.cs (1)
378string action = message.Headers.Action;
System\ServiceModel\Diagnostics\MessageLogTraceRecord.cs (1)
237MessageHeaders headers = this.message.Headers;
System\ServiceModel\Diagnostics\MessageTraceRecord.cs (3)
38(this.message.Headers != null)) 85for (int i = 0; i < this.message.Headers.Count; i++) 87this.message.Headers.WriteHeader(i, xml);
System\ServiceModel\Diagnostics\PerformanceCounters.cs (2)
687if (null != message && null != message.Headers && null != message.Headers.To && null != listenUri)
System\ServiceModel\Diagnostics\SecurityTraceRecordHelper.cs (5)
769xml.WriteElementString("MessageAction", message.Headers.Action); 896string action = this.message.Headers.Action; 897Uri to = this.message.Headers.To; 898EndpointAddress replyTo = this.message.Headers.ReplyTo; 899UniqueId id = this.message.Headers.MessageId;
System\ServiceModel\Diagnostics\ServiceModelPerformanceCounters.cs (3)
88Fx.Assert(null != message.Headers, "message headers must not be null"); 89Fx.Assert(null != message.Headers.Action, "action must not be null"); 92if (this.actionToOperation.TryGetValue(message.Headers.Action, out operation))
System\ServiceModel\Diagnostics\TraceUtility.cs (1)
1144ServiceModelActivity.Start(activity, SR.GetString(SR.ActivityProcessAction, message.Headers.Action), ActivityType.ProcessAction);
System\ServiceModel\Dispatcher\ActionMessageFilter.cs (1)
81string act = message.Headers.Action;
System\ServiceModel\Dispatcher\ActionMessageFilterTable.cs (3)
182string act = message.Headers.Action; 221string act = message.Headers.Action; 244string act = message.Headers.Action;
System\ServiceModel\Dispatcher\AuthenticationBehavior.cs (2)
89this.suppressAuditFailure, rpc.Request, rpc.Channel.ListenUri, rpc.Request.Headers.Action, 121this.suppressAuditFailure, rpc.Request, rpc.Channel.ListenUri, rpc.Request.Headers.Action,
System\ServiceModel\Dispatcher\AuthorizationBehavior.cs (4)
97this.suppressAuditFailure, rpc.Request, rpc.Request.Headers.To, rpc.Request.Headers.Action, 131this.suppressAuditFailure, rpc.Request, rpc.Request.Headers.To, rpc.Request.Headers.Action,
System\ServiceModel\Dispatcher\ChannelHandler.cs (7)
431if (this.shouldRejectMessageWithOnOpenActionHeader && message.Headers.Action == OperationDescription.SessionOpenedAction) 433throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SFxNoEndpointMatchingAddressForConnectionOpeningMessage, message.Headers.Action, "Open"))); 519message.Headers.To = this.LocalAddress.Uri; 1159string reason = SR.GetString(SR.SFxNoEndpointMatchingAddress, request.RequestMessage.Headers.To); 1169if (addressingVersion != AddressingVersion.None && request.RequestMessage.Headers.Action == null) 1181string reason = SR.GetString(SR.SFxNoEndpointMatchingContract, request.RequestMessage.Headers.Action); 1339requestID = requestMessage.Headers.MessageId;
System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (2)
175MessageHeaders headers = message.Headers; 276MessageHeaders headers = message.Headers;
System\ServiceModel\Dispatcher\DispatchOperationRuntime.cs (2)
810throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SFxInvalidReplyAction, this.Name, reply.Headers.Action ?? "{NULL}", this.ReplyAction))); 883rpc.NotUnderstoodHeaders = rpc.Request.Headers.GetHeadersNotUnderstood();
System\ServiceModel\Dispatcher\DispatchRuntime.cs (1)
805string action = message.Headers.Action;
System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (3)
273relatesTo = message.Headers.RelatesTo; 478UniqueId messageId = message.Headers.MessageId; 506if (reply.Headers.RelatesTo == messageId)
System\ServiceModel\Dispatcher\EndpointAddressMessageFilter.cs (1)
96Uri to = message.Headers.To;
System\ServiceModel\Dispatcher\EndpointAddressMessageFilterTable.cs (3)
339Uri to = message.Headers.To; 422Uri to = message.Headers.To; 456Uri to = message.Headers.To;
System\ServiceModel\Dispatcher\EndpointAddressProcessor.cs (1)
193MessageHeaders headers = msg.Headers;
System\ServiceModel\Dispatcher\ErrorBehavior.cs (2)
110if (rpc.FaultInfo.Fault.Headers.Action == null) 112rpc.FaultInfo.Fault.Headers.Action = rpc.RequestVersion.Addressing.DefaultFaultAction;
System\ServiceModel\Dispatcher\ImmutableDispatchRuntime.cs (3)
720message.Headers.CopyHeadersFrom(context.OutgoingMessageHeaders); 947MessageHeaders headers = rpc.Request.Headers; 1765string action = request.Headers.Action;
System\ServiceModel\Dispatcher\MessageRpc.cs (1)
135this.RequestID = request.Headers.MessageId;
System\ServiceModel\Dispatcher\PrefixEndpointAddressMessageFilter.cs (1)
89Uri to = message.Headers.To;
System\ServiceModel\Dispatcher\ProxyOperationRuntime.cs (3)
245Collection<MessageHeaderInfo> headersNotUnderstood = reply.Headers.GetHeadersNotUnderstood(); 333throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SFxInvalidRequestAction, this.Name, rpc.Request.Headers.Action ?? "{NULL}", this.Action))); 481return (String.CompareOrdinal(message.Headers.Action, action) == 0);
System\ServiceModel\Dispatcher\SeekableMessageNavigator.cs (5)
1153this.headers = msg.Headers; 1157int minSize = msg.Headers.Count + FirstHeaderIndex + 1; 1183if (msg.Headers.Count > 0) 1185for (int i = FirstHeaderIndex, h = 0; h < msg.Headers.Count; ++i, ++h) 1193MessageHeaderInfo header = msg.Headers[h];
System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (4)
101message.Headers.Add(new XmlElementMessageHeader(this, message.Version, element.LocalName, element.NamespaceURI, 113message.Headers.Add(new XmlElementMessageHeader(this, message.Version, element.LocalName, element.NamespaceURI, 125message.Headers.Add(new XmlElementMessageHeader(this, message.Version, element.LocalName, element.NamespaceURI, 156MessageHeaders headers = message.Headers;
System\ServiceModel\Dispatcher\XPathMessageContext.cs (6)
633act = msg.Headers.Action; 660string act = nav.Message.Headers.Action; 706Uri tempTo = msg.Headers.To; 723Uri to = nav.Message.Headers.To; 769UniqueId uid = msg.Headers.MessageId; 786UniqueId id = nav.Message.Headers.MessageId;
System\ServiceModel\EndpointAddress.cs (5)
315message.Headers.To = null; 320message.Headers.To = message.Version.Addressing.AnonymousUri; 330message.Headers.To = message.Version.Addressing.NoneUri; 334message.Headers.To = uri; 336message.Properties.Via = message.Headers.To;
System\ServiceModel\MessageHeaderException.cs (1)
65phf.AddHeaders(message.Headers);
System\ServiceModel\MustUnderstandSoapException.cs (1)
45this.AddNotUnderstoodHeaders(message.Headers);
System\ServiceModel\OperationContext.cs (1)
243return message.Headers;
System\ServiceModel\ProtocolException.cs (4)
32string text = SR.GetString(SR.ReceiveShutdownReturnedLargeFault, message.Headers.Action); 38string text = SR.GetString(SR.ReceiveShutdownReturnedMessage, message.Headers.Action); 56string text = SR.GetString(SR.OneWayOperationReturnedLargeFault, message.Headers.Action); 62string text = SR.GetString(SR.OneWayOperationReturnedMessage, message.Headers.Action);
System\ServiceModel\Security\AcceleratedTokenAuthenticator.cs (1)
312if (message.Headers.Action == this.authenticator.RequestSecurityTokenAction.Value)
System\ServiceModel\Security\AcceleratedTokenProvider.cs (2)
270if (incomingMessage.Headers.Action != RequestSecurityTokenResponseAction.Value) 272throw TraceUtility.ThrowHelperError(new SecurityNegotiationException(SR.GetString(SR.InvalidActionForNegotiationMessage, incomingMessage.Headers.Action)), incomingMessage);
System\ServiceModel\Security\AcceptorSessionSymmetricMessageSecurityProtocol.cs (1)
192securityHeader.EnforceDerivedKeyRequirement = (message.Headers.Action != factory.StandardsManager.SecureConversationDriver.CloseAction.Value);
System\ServiceModel\Security\AcceptorSessionSymmetricTransportSecurityProtocol.cs (1)
108securityHeader.EnforceDerivedKeyRequirement = (message.Headers.Action != this.Factory.StandardsManager.SecureConversationDriver.CloseAction.Value);
System\ServiceModel\Security\ImpersonatingMessage.cs (1)
38get { return this.innerMessage.Headers; }
System\ServiceModel\Security\InitiatorSessionSymmetricMessageSecurityProtocol.cs (1)
246securityHeader.EnforceDerivedKeyRequirement = (message.Headers.Action != factory.StandardsManager.SecureConversationDriver.CloseResponseAction.Value);
System\ServiceModel\Security\IssuanceTokenProviderBase.cs (1)
445nextMessage.Headers.ReplyTo = EndpointAddress.AnonymousAddress;
System\ServiceModel\Security\IssuedTokensHeader.cs (5)
204for (int i = 0; i < message.Headers.Count; ++i) 206if (message.Headers[i].Name == standardsManager.TrustDriver.IssuedTokensHeaderName && message.Headers[i].Namespace == standardsManager.TrustDriver.IssuedTokensHeaderNamespace) 211if (actors[j] == message.Headers[i].Actor) 221IssuedTokensHeader issuedTokensHeader = new IssuedTokensHeader(message.Headers.GetReaderAtHeader(i), message.Version, standardsManager);
System\ServiceModel\Security\MessageSecurityProtocol.cs (2)
331string action = message.Headers.Action; 387string action = message.Headers.Action;
System\ServiceModel\Security\NegotiationTokenAuthenticator.cs (12)
570if (message.Headers.Action == this.RequestSecurityTokenAction.Value) 580else if (message.Headers.Action == this.RequestSecurityTokenResponseAction.Value) 592throw TraceUtility.ThrowHelperError(new SecurityNegotiationException(SR.GetString(SR.InvalidActionForNegotiationMessage, message.Headers.Action)), message); 598if (request.Headers.MessageId != null) 732string action = request.Headers.Action; 748to = request.Headers.To; 824this.suppressAuditFailure, request, request.Headers.To, request.Headers.Action, 845this.suppressAuditFailure, request, request.Headers.To, request.Headers.Action, 946faultReply.Headers.RelatesTo = request.Headers.MessageId;
System\ServiceModel\Security\ReceiveSecurityHeader.cs (2)
588MessageHeaderInfo header = this.Message.Headers[this.headerIndex]; 590Message.Headers.UnderstoodHeaders.Add(header);
System\ServiceModel\Security\ReceiveSecurityHeaderElementManager.cs (1)
35this.headerIds = new string[securityHeader.ProcessedMessage.Headers.Count];
System\ServiceModel\Security\SecurityProtocol.cs (7)
586IList<SupportingTokenProviderSpecification> supportingTokenProviders = this.GetSupportingTokenProviders(message.Headers.Action); 634IList<SupportingTokenAuthenticatorSpecification> authenticators = factory.GetSupportingTokenAuthenticators(message.Headers.Action, 812this.factory.SuppressAuditFailure, verifiedMessage, verifiedMessage.Headers.To, verifiedMessage.Headers.Action, 841this.factory.SuppressAuditFailure, message, message.Headers.To, message.Headers.Action, primaryIdentity, exception); 961this.supportingTokenProviders = this.binding.GetSupportingTokenProviders(message.Headers.Action);
System\ServiceModel\Security\SecuritySessionClientSettings.cs (13)
788closeMessage.Headers.ReplyTo = this.InternalLocalAddress; 794closeMessage.Headers.ReplyTo = null; 798closeMessage.Headers.ReplyTo = EndpointAddress.AnonymousAddress; 934if (response.Headers.Action != this.Settings.SecurityStandardsManager.SecureConversationDriver.CloseResponseAction.Value) 936throw TraceUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.InvalidCloseResponseAction, response.Headers.Action)), response); 972if (request.Headers.ReplyTo != null) 974request.Headers.ReplyTo.ApplyTo(reply); 976else if (request.Headers.From != null) 978request.Headers.From.ApplyTo(reply); 980if (request.Headers.MessageId != null) 982reply.Headers.RelatesTo = request.Headers.MessageId; 1062string action = message.Headers.Action;
System\ServiceModel\Security\SecuritySessionFilter.cs (1)
49string action = message.Headers.Action;
System\ServiceModel\Security\SecuritySessionSecurityTokenAuthenticator.cs (10)
476faultReply.Headers.RelatesTo = request.Headers.MessageId; 677throw TraceUtility.ThrowHelperWarning(new InvalidOperationException(SR.GetString(SR.SecurityContextMissing, request.Headers.Action)), request); 806this.NotifyOperationCompletion(SecuritySessionOperation.Renew, newToken, (SecurityContextSecurityToken)sessionToken.SecurityToken, request.Headers.ReplyTo); 950this.NotifyOperationCompletion(SecuritySessionOperation.Issue, issuedToken, null, request.Headers.ReplyTo); 996if (request.Headers.MessageId != null) 1018if (request.Headers.Action == this.IssueAction.Value) 1023else if (request.Headers.Action == this.RenewAction.Value) 1030throw TraceUtility.ThrowHelperWarning(new SecurityNegotiationException(SR.GetString(SR.InvalidActionForNegotiationMessage, request.Headers.Action)), request); 1344if (message.Headers.Action == this.actions[i])
System\ServiceModel\Security\SecuritySessionSecurityTokenProvider.cs (4)
671message.Headers.ReplyTo = this.LocalAddress; 675message.Headers.ReplyTo = EndpointAddress.AnonymousAddress; 785if (response.Headers.Action != this.RenewResponseAction.Value) 787throw TraceUtility.ThrowHelperError(new SecurityNegotiationException(SR.GetString(SR.InvalidRenewResponseAction, response.Headers.Action)), response);
System\ServiceModel\Security\SecuritySessionServerSettings.cs (18)
1069throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new EndpointNotFoundException(SR.GetString(SR.SecuritySessionListenerNotFound, message.Headers.Action))); 1401message.Headers.Action != this.settings.SecurityStandardsManager.SecureConversationDriver.CloseAction.Value) 1708if (unverifiedMessage.Headers.MessageId != null) 1774if (message.Headers.Action == this.Settings.SecurityStandardsManager.SecureConversationDriver.CloseAction.Value) 1782else if (message.Headers.Action == this.Settings.SecurityStandardsManager.SecureConversationDriver.CloseResponseAction.Value) 1847if (request.Headers.ReplyTo != null) 1849request.Headers.ReplyTo.ApplyTo(reply); 1851else if (request.Headers.From != null) 1853request.Headers.From.ApplyTo(reply); 1855if (request.Headers.MessageId != null) 1857reply.Headers.RelatesTo = request.Headers.MessageId; 1894if (message.Headers.MessageId != null) 2070closeMessage.Headers.ReplyTo = this.LocalAddress; 2076closeMessage.Headers.ReplyTo = null; 2080closeMessage.Headers.ReplyTo = EndpointAddress.AnonymousAddress; 4709MessageFault fault = SecurityUtils.CreateSecurityContextNotFoundFault(this.standardsManager, message.Headers.Action); 4711if (message.Headers.MessageId != null)
System\ServiceModel\Security\SecurityStandardsManager.cs (1)
204using (XmlDictionaryReader reader = message.Headers.GetReaderAtHeader(securityHeaderIndex))
System\ServiceModel\Security\SecurityUtils.cs (1)
1259Exception faultException = new FaultException(fault, message.Headers.Action);
System\ServiceModel\Security\SecurityVersion.cs (5)
100return message.Headers.FindHeader(this.HeaderName.Value, this.HeaderNamespace.Value) >= 0; 105return message.Headers.FindHeader(this.HeaderName.Value, this.HeaderNamespace.Value, actors); 127int headerIndex = message.Headers.FindHeader(this.HeaderName.Value, this.HeaderNamespace.Value, actor); 130headerIndex = message.Headers.FindHeader(this.HeaderName.Value, this.HeaderNamespace.Value, message.Version.Envelope.UltimateDestinationActorValues); 137MessageHeaderInfo headerInfo = message.Headers[headerIndex];
System\ServiceModel\Security\SspiNegotiationTokenAuthenticator.cs (2)
394if (message.Headers.Action == authenticator.RequestSecurityTokenAction.Value 395|| message.Headers.Action == authenticator.RequestSecurityTokenResponseAction.Value)
System\ServiceModel\Security\Tokens\IssuedSecurityTokenProvider.cs (4)
955if ((this.StandardsManager.MessageSecurityVersion.TrustVersion == TrustVersion.WSTrustFeb2005 && incomingMessage.Headers.Action != this.StandardsManager.TrustDriver.RequestSecurityTokenResponseAction.Value) || 956(this.StandardsManager.MessageSecurityVersion.TrustVersion == TrustVersion.WSTrust13 && incomingMessage.Headers.Action != this.StandardsManager.TrustDriver.RequestSecurityTokenResponseFinalAction.Value) || 957incomingMessage.Headers.Action == null) 959throw TraceUtility.ThrowHelperError(new SecurityNegotiationException(SR.GetString(SR.InvalidActionForNegotiationMessage, incomingMessage.Headers.Action)), incomingMessage);
System\ServiceModel\Security\TransportSecurityProtocol.cs (1)
216IList<SupportingTokenAuthenticatorSpecification> supportingAuthenticators = factory.GetSupportingTokenAuthenticators(message.Headers.Action,
System\ServiceModel\Security\WSSecurityOneDotZeroReceiveSecurityHeader.cs (2)
609int headerIndex = this.Message.Headers.FindHeader(XD.AddressingDictionary.To.Value, this.Message.Version.Addressing.Namespace); 612XmlDictionaryReader toHeaderReader = this.Message.Headers.GetReaderAtHeader(headerIndex);
System\ServiceModel\Security\WSTrustChannel.cs (2)
398if (response.Headers != null) 400action = response.Headers.Action;
System\ServiceModel\ServiceAuthenticationManager.cs (3)
95(message.Headers != null) && 96!String.IsNullOrEmpty(message.Headers.Action) && 97(message.Headers.Action == this.filteredActionUriCollection[i]))
System\ServiceModel\Transactions\OletxTransactionFormatter.cs (1)
34message.Headers.Add(header);
System\ServiceModel\Transactions\OletxTransactionHeader.cs (5)
82index = message.Headers.FindHeader(OleTxHeaderElement, OleTxNamespace); 94XmlDictionaryReader reader = message.Headers.GetReaderAtHeader(index); 108MessageHeaderInfo header = message.Headers[index]; 109if (!message.Headers.UnderstoodHeaders.Contains(header)) 111message.Headers.UnderstoodHeaders.Add(header);
System\ServiceModel\Transactions\WsatRegistrationHeader.cs (5)
99index = message.Headers.FindHeader(HeaderName, HeaderNamespace); 113XmlDictionaryReader reader = message.Headers.GetReaderAtHeader(index); 127MessageHeaderInfo headerInfo = message.Headers[index]; 128if (!message.Headers.UnderstoodHeaders.Contains(headerInfo)) 130message.Headers.UnderstoodHeaders.Add(headerInfo);
System\ServiceModel\Transactions\WsatTransactionFormatter.cs (1)
67message.Headers.Add(header);
System\ServiceModel\Transactions\WsatTransactionHeader.cs (5)
71index = message.Headers.FindHeader(locWsatHeaderElement, locWsatNamespace); 82XmlDictionaryReader reader = message.Headers.GetReaderAtHeader(index); 88MessageHeaderInfo header = message.Headers[index]; 89if (!message.Headers.UnderstoodHeaders.Contains(header)) 91message.Headers.UnderstoodHeaders.Add(header);
System.ServiceModel.Activities (1)
System\ServiceModel\Activities\FromReply.cs (1)
139string action = inMessage.Headers.Action;
System.ServiceModel.Channels (14)
System\ServiceModel\Channels\MessageExtensionMethods.cs (1)
128message.Headers.Add(header);
System\ServiceModel\Channels\ServerUdpOutputChannel.cs (2)
114else if (message.Headers.To != null) 116destination = message.Headers.To;
System\ServiceModel\Channels\UdpChannelBase.cs (4)
280if (message.Headers.MessageId != null) 282messageIdString = string.Format(CultureInfo.CurrentCulture, "'{0}' ", message.Headers.MessageId.ToString()); 302if (message.Headers.MessageId == null) 304message.Headers.MessageId = new UniqueId();
System\ServiceModel\Channels\UdpDuplexChannel.cs (1)
192this.UdpOutputChannel.CancelRetransmission(message.Headers.RelatesTo);
System\ServiceModel\Channels\UdpOutputChannel.cs (6)
160if (message.Headers.MessageId == null) 162message.Headers.MessageId = new UniqueId(); 236this.RetransmitStarting(message.Headers.MessageId, retransmitHelper); 280this.RetransmitStopping(message.Headers.MessageId); 900this.channel.RetransmitStarting(this.message.Headers.MessageId, this); 920this.channel.RetransmitStopping(this.message.Headers.MessageId);
System.ServiceModel.Discovery (6)
System\ServiceModel\Discovery\DiscoveryClientDuplexChannel.cs (3)
104if (message != null && message.Headers != null) 106if (message.Headers.ReplyTo == DiscoveryClientBindingElement.DiscoveryEndpointAddress) 108message.Headers.ReplyTo = this.LocalAddress;
System\ServiceModel\Discovery\UdpDiscoveryMessageFilter.cs (3)
52bool isMatch = ((message.Headers.ReplyTo == null) || 53(message.Headers.ReplyTo.IsAnonymous)); 63TD.DiscoveryMessageWithInvalidReplyTo(eventTraceActivity, message.Headers.MessageId.ToString());
System.ServiceModel.Routing (14)
System\ServiceModel\Routing\MessageRpc.cs (2)
118this.Message.Headers.MessageId != null) 120this.uniqueID = this.originalMessage.Headers.MessageId.ToString();
System\ServiceModel\Routing\ProcessMessagesAsyncResult.cs (1)
55TD.RoutingServiceProcessingMessage(messageRpc.EventTraceActivity, messageRpc.UniqueID, messageRpc.Message.Headers.Action, messageRpc.OperationContext.EndpointDispatcher.EndpointAddress.Uri.ToString(), (messageRpc.Transaction != null).ToString());
System\ServiceModel\Routing\ProcessRequestAsyncResult.cs (3)
36message.Headers.Action, this.messageRpc.OperationContext.EndpointDispatcher.EndpointAddress.Uri.ToString(), messageRpc.Transaction != null ? "True" : "False"); 185string action = (responseMsg != null) ? responseMsg.Headers.Action : string.Empty; 191if (TD.RoutingServiceSendingFaultResponseIsEnabled()) { TD.RoutingServiceSendingFaultResponse(this.messageRpc.EventTraceActivity, responseMsg.Headers.Action); }
System\ServiceModel\Routing\SoapProcessingBehavior.cs (8)
111MessageHeaders originalHeaders = originalMessage.Headers; 132MessageHeaders replyHeaders = reply.Headers; 149request = MarshalMessage(request, request.Headers.To, sendMessageVersion); 155request = MarshalMessage(request, request.Headers.To, this.sourceMessageVersion); 163reply = MarshalMessage(reply, reply.Headers.To, sendMessageVersion); 182MessageHeaders headers = message.Headers; 203MessageHeaders sourceHeaders = source.Headers; 254CloneHeaders(result.Headers, sourceHeaders, to, understoodHeadersSet);
System.ServiceModel.Web (11)
System\ServiceModel\Description\WebScriptEnablingBehavior.cs (3)
404Message newMessage = Message.CreateMessage(version, fault.Headers.Action, new JsonFaultBodyWriter(innerFault, this.includeExceptionDetailInFaults)); 405newMessage.Headers.To = fault.Headers.To;
System\ServiceModel\Dispatcher\HttpUnhandledOperationInvoker.cs (1)
47Uri to = message.Headers.To;
System\ServiceModel\Dispatcher\UriTemplateClientFormatter.cs (2)
80bool userSetTheToOnMessage = (this.innerIsUntypedMessage && m.Headers.To != null); 84m.Headers.To = this.uriTemplate.BindByName(this.baseUri, nvc);
System\ServiceModel\Dispatcher\UriTemplateDispatchFormatter.cs (3)
64if (message.Headers.To != null && message.Headers.To.IsAbsoluteUri) 66utmr = this.uriTemplate.Match(this.baseAddress, message.Headers.To);
System\ServiceModel\Dispatcher\WebHttpDispatchOperationSelector.cs (2)
168TraceUtility.TraceEvent(TraceEventType.Information, TraceCode.WebRequestMatchesOperation, SR2.GetString(SR2.TraceCodeWebRequestMatchesOperation, message.Headers.To, result)); 201Uri to = message.Headers.To;