5 overrides of Headers
dotnet-svcutil-lib (5)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BinaryMessageEncoder.cs (1)
1548public override MessageHeaders Headers
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ContentOnlyMessage.cs (1)
23public override MessageHeaders Headers
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\Message.cs (3)
978public override MessageHeaders Headers 1286public override MessageHeaders Headers 1501public override MessageHeaders Headers
105 references to Headers
dotnet-svcutil-lib (105)
FrameworkFork\System.ServiceModel\System\ServiceModel\ActionMismatchAddressingException.cs (1)
43phf.AddHeaders(message.Headers);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\AddressHeaderCollection.cs (1)
66message.Headers.Add(this[i].ToMessageHeader());
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelFactory.cs (4)
608Uri toHeader = message.Headers.To; 1032string action = message.Headers.Action; 1041message.Headers.Action = null; 1042message.Headers.To = null;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpRequestMessageExtensionMethods.cs (1)
30properties[MessageHeadersPropertyKey] = message.Headers;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpResponseMessageHelper.cs (3)
76actionAbsent = (message.Headers.Action == null); 99toAbsent = (message.Headers.To == null); 114message.Headers.To = message.Properties.Via;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\Message.cs (6)
266MessageHeaders headers = this.Headers; 310UniqueId requestMessageID = request.Headers.MessageId; 313Headers.RelatesTo = requestMessageID; 491MessageHeaders headers = this.Headers; 705MessageHeaders headers = this.Headers; 742MessageHeaders headers = Headers;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageBuffer.cs (7)
69_understoodHeaders = new bool[message.Headers.Count]; 71_understoodHeaders[i] = message.Headers.IsUnderstood(i); 75_to = message.Headers.To; 76_action = message.Headers.Action; 130msg.Headers.AddUnderstood(i); 135msg.Headers.To = _to; 140msg.Headers.Action = _action;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageContent.cs (1)
45string action = _message.Headers.Action;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageHeaders.cs (2)
482CopyHeaderFrom(message.Headers, headerIndex); 528CopyHeadersFrom(message.Headers);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\RequestReplyCorrelator.cs (8)
24UniqueId messageId = request.Headers.MessageId; 77UniqueId relatesTo = reply.Headers.RelatesTo; 120MessageHeaders requestHeaders = request.Headers; 139MessageHeaders replyHeaders = reply.Headers; 154UniqueId messageId = request.Headers.MessageId; 158MessageHeaders replyHeaders = reply.Headers; 180_faultTo = message.Headers.FaultTo; 181_replyTo = message.Headers.ReplyTo;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannel.cs (12)
580MessageHeaders headers = rpc.Request.Headers; 929if ((operation.ReplyAction != MessageHeaders.WildcardAction) && !rpc.Reply.IsFault && rpc.Reply.Headers.Action != null) 931if (String.CompareOrdinal(operation.ReplyAction, rpc.Reply.Headers.Action) != 0) 935rpc.Reply.Headers.Action, 943string action = rpc.Reply.Headers.Action; 1166if (!context.OutgoingMessageVersion.IsMatch(message.Headers.MessageVersion)) 1169string.Format(SRServiceModel.SFxVersionMismatchInOperationContextAndMessage2, context.OutgoingMessageVersion, message.Headers.MessageVersion) 1175message.Headers.CopyHeadersFrom(context.OutgoingMessageHeaders); 1194Call(message.Headers.Action, true, operation, new object[] { message }, Array.Empty<object>(), timeout); 1205return BeginCall(message.Headers.Action, true, operation, new object[] { message }, timeout, callback, state); 1221return (Message)Call(message.Headers.Action, false, operation, new object[] { message }, Array.Empty<object>(), timeout); 1232return BeginCall(message.Headers.Action, false, operation, new object[] { message }, timeout, callback, state);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportOutputChannel.cs (1)
108message.Headers.SetToHeader(_toHeader);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (3)
858if (message.Version.Addressing == AddressingVersion.None && message.Headers.Action == null) 862message.Headers.Action = WebSocketTransportSettings.BinaryMessageReceivedAction; 868message.Headers.Action = WebSocketTransportSettings.TextMessageReceivedAction;
FrameworkFork\System.ServiceModel\System\ServiceModel\Diagnostics\ActivityIdHeader.cs (9)
39if (message != null && message.State != MessageState.Closed && message.Headers != null) 41int index = message.Headers.FindHeader(DiagnosticStrings.ActivityId, DiagnosticStrings.DiagnosticsNamespace); 46using (XmlDictionaryReader reader = message.Headers.GetReaderAtHeader(index)) 76if (message.State != MessageState.Closed && message.Headers != null) 78int index = message.Headers.FindHeader(DiagnosticStrings.ActivityId, DiagnosticStrings.DiagnosticsNamespace); 83using (XmlDictionaryReader reader = message.Headers.GetReaderAtHeader(index)) 109if (message.State != MessageState.Closed && message.Headers.MessageVersion.Envelope != EnvelopeVersion.None) 111int index = message.Headers.FindHeader(DiagnosticStrings.ActivityId, DiagnosticStrings.DiagnosticsNamespace); 114message.Headers.Add(this);
FrameworkFork\System.ServiceModel\System\ServiceModel\Diagnostics\EventTraceActivityHelper.cs (2)
56UniqueId uid = message.Headers.RelatesTo; 93UniqueId uniqueId = message.Headers.MessageId;
FrameworkFork\System.ServiceModel\System\ServiceModel\Diagnostics\TraceUtility.cs (1)
485ServiceModelActivity.Start(activity, string.Format(SRServiceModel.ActivityProcessAction, message.Headers.Action), ActivityType.ProcessAction);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ChannelHandler.cs (6)
271if (_shouldRejectMessageWithOnOpenActionHeader && message.Headers.Action == OperationDescription.SessionOpenedAction) 273throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxNoEndpointMatchingAddressForConnectionOpeningMessage, message.Headers.Action, "Open"))); 826string reason = string.Format(SRServiceModel.SFxNoEndpointMatchingAddress, request.RequestMessage.Headers.To); 836if (addressingVersion != AddressingVersion.None && request.RequestMessage.Headers.Action == null) 848string reason = string.Format(SRServiceModel.SFxNoEndpointMatchingContract, request.RequestMessage.Headers.Action); 996requestID = requestMessage.Headers.MessageId;
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (2)
149MessageHeaders headers = message.Headers; 249MessageHeaders headers = message.Headers;
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DispatchOperationRuntime.cs (2)
316throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxInvalidReplyAction, this.Name, reply.Headers.Action ?? "{NULL}", this.ReplyAction))); 364rpc.NotUnderstoodHeaders = rpc.Request.Headers.GetHeadersNotUnderstood();
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DispatchRuntime.cs (1)
373string action = message.Headers.Action;
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (3)
263relatesTo = message.Headers.RelatesTo; 468UniqueId messageId = message.Headers.MessageId; 496if (reply.Headers.RelatesTo == messageId)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ErrorBehavior.cs (2)
65if (rpc.FaultInfo.Fault.Headers.Action == null) 67rpc.FaultInfo.Fault.Headers.Action = rpc.RequestVersion.Addressing.DefaultFaultAction;
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ImmutableDispatchRuntime.cs (2)
273message.Headers.CopyHeadersFrom(context.OutgoingMessageHeaders); 888string action = request.Headers.Action;
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\MessageRpc.cs (1)
113this.RequestID = request.Headers.MessageId;
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ProxyOperationRuntime.cs (3)
199Collection<MessageHeaderInfo> headersNotUnderstood = reply.Headers.GetHeadersNotUnderstood(); 260throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxInvalidRequestAction, this.Name, rpc.Request.Headers.Action ?? "{NULL}", this.Action))); 405return (String.CompareOrdinal(message.Headers.Action, action) == 0);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (4)
96message.Headers.Add(new XmlElementMessageHeader(this, message.Version, element.LocalName, element.NamespaceURI, 108message.Headers.Add(new XmlElementMessageHeader(this, message.Version, element.LocalName, element.NamespaceURI, 119message.Headers.Add(new XmlElementMessageHeader(this, message.Version, element.LocalName, element.NamespaceURI, 150MessageHeaders headers = message.Headers;
FrameworkFork\System.ServiceModel\System\ServiceModel\EndpointAddress.cs (5)
313message.Headers.To = null; 318message.Headers.To = message.Version.Addressing.AnonymousUri; 328message.Headers.To = message.Version.Addressing.NoneUri; 332message.Headers.To = uri; 334message.Properties.Via = message.Headers.To;
FrameworkFork\System.ServiceModel\System\ServiceModel\MessageHeaderException.cs (1)
60phf.AddHeaders(message.Headers);
FrameworkFork\System.ServiceModel\System\ServiceModel\MustUnderstandSoapException.cs (1)
40this.AddNotUnderstoodHeaders(message.Headers);
FrameworkFork\System.ServiceModel\System\ServiceModel\OperationContext.cs (1)
204return message.Headers;
FrameworkFork\System.ServiceModel\System\ServiceModel\ProtocolException.cs (4)
29string text = string.Format(SRServiceModel.ReceiveShutdownReturnedLargeFault, message.Headers.Action); 35string text = string.Format(SRServiceModel.ReceiveShutdownReturnedMessage, message.Headers.Action); 53string text = string.Format(SRServiceModel.OneWayOperationReturnedLargeFault, message.Headers.Action); 59string text = string.Format(SRServiceModel.OneWayOperationReturnedMessage, message.Headers.Action);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityVersion.cs (5)
91return message.Headers.FindHeader(this.HeaderName.Value, this.HeaderNamespace.Value) >= 0; 96return message.Headers.FindHeader(this.HeaderName.Value, this.HeaderNamespace.Value, actors); 117int headerIndex = message.Headers.FindHeader(this.HeaderName.Value, this.HeaderNamespace.Value, actor); 120headerIndex = message.Headers.FindHeader(this.HeaderName.Value, this.HeaderNamespace.Value, message.Version.Envelope.UltimateDestinationActorValues); 127MessageHeaderInfo headerInfo = message.Headers[headerIndex];