System\ServiceModel\Channels\MessageHeaders.cs (87)
76HeaderKind kind = GetHeaderKind(bufferedHeader);
77if (kind != HeaderKind.Unknown)
124int index = FindHeaderProperty(HeaderKind.Action);
140SetHeaderProperty(HeaderKind.Action, null);
168int index = FindHeaderProperty(HeaderKind.FaultTo);
184SetHeaderProperty(HeaderKind.FaultTo, null);
192int index = FindHeaderProperty(HeaderKind.From);
208SetHeaderProperty(HeaderKind.From, null);
231int index = FindHeaderProperty(HeaderKind.MessageId);
247SetHeaderProperty(HeaderKind.MessageId, null);
272int index = FindHeaderProperty(HeaderKind.ReplyTo);
288SetHeaderProperty(HeaderKind.ReplyTo, null);
296int index = FindHeaderProperty(HeaderKind.To);
312SetHeaderProperty(HeaderKind.To, null);
348Insert(headerCount, actionHeader, HeaderKind.Action);
353Insert(headerCount, messageIDHeader, HeaderKind.MessageId);
358Insert(headerCount, relatesToHeader, HeaderKind.RelatesTo);
363Insert(headerCount, replyToHeader, HeaderKind.ReplyTo);
368Insert(headerCount, toHeader, HeaderKind.To);
371void Add(MessageHeader header, HeaderKind kind)
505if ((header.HeaderProcessing & HeaderProcessing.Understood) != 0 || header.HeaderKind != HeaderKind.Unknown)
556Exception CreateDuplicateHeaderException(HeaderKind kind)
561case HeaderKind.Action:
564case HeaderKind.FaultTo:
567case HeaderKind.From:
570case HeaderKind.MessageId:
573case HeaderKind.ReplyTo:
576case HeaderKind.To:
612if (headers[i].HeaderKind != HeaderKind.Unknown)
634if (headers[i].HeaderKind == HeaderKind.Unknown)
690int FindHeaderProperty(HeaderKind kind)
711if (headers[i].HeaderKind == HeaderKind.RelatesTo)
881HeaderKind GetHeaderKind(MessageHeaderInfo headerInfo)
883HeaderKind headerKind = HeaderKind.Unknown;
897headerKind = HeaderKind.Action;
903headerKind = HeaderKind.From;
907headerKind = HeaderKind.FaultTo;
913headerKind = HeaderKind.MessageId;
919headerKind = HeaderKind.ReplyTo;
923headerKind = HeaderKind.RelatesTo;
929headerKind = HeaderKind.To;
941void ValidateHeaderKind(HeaderKind headerKind)
945if (headerKind != HeaderKind.Action && headerKind != HeaderKind.To)
954if (headerKind != HeaderKind.Unknown && headerKind != HeaderKind.Action && headerKind != HeaderKind.To)
1191strings[(int)HeaderKind.To] = dictionary.To;
1192strings[(int)HeaderKind.Action] = dictionary.Action;
1193strings[(int)HeaderKind.MessageId] = dictionary.MessageId;
1194strings[(int)HeaderKind.RelatesTo] = dictionary.RelatesTo;
1195strings[(int)HeaderKind.ReplyTo] = dictionary.ReplyTo;
1196strings[(int)HeaderKind.From] = dictionary.From;
1197strings[(int)HeaderKind.FaultTo] = dictionary.FaultTo;
1224void Insert(int headerIndex, MessageHeader header, HeaderKind kind)
1228if (kind != HeaderKind.Unknown)
1316HeaderKind kind = HeaderKind.Unknown;
1322kind = (HeaderKind)reader.IndexOfLocalName(localNames, version.Addressing.DictionaryNamespace);
1325case HeaderKind.To:
1328case HeaderKind.Action:
1331case HeaderKind.MessageId:
1334case HeaderKind.RelatesTo:
1337case HeaderKind.ReplyTo:
1340case HeaderKind.From:
1343case HeaderKind.FaultTo:
1347kind = HeaderKind.Unknown;
1359if (kind != HeaderKind.Unknown || understood)
1371if (headers[i].HeaderKind == HeaderKind.Unknown)
1451void ReplaceAt(int headerIndex, MessageHeader header, HeaderKind kind)
1454if (kind != HeaderKind.Unknown)
1467SetHeaderProperty(HeaderKind.Action, null);
1474SetHeaderProperty(HeaderKind.Action, actionHeader);
1479SetHeaderProperty(HeaderKind.FaultTo, faultToHeader);
1484SetHeaderProperty(HeaderKind.From, fromHeader);
1489SetHeaderProperty(HeaderKind.MessageId, messageIDHeader);
1524ReplaceAt(index, relatesToHeader, HeaderKind.RelatesTo);
1529Add(relatesToHeader, HeaderKind.RelatesTo);
1535SetHeaderProperty(HeaderKind.ReplyTo, replyToHeader);
1540SetHeaderProperty(HeaderKind.To, toHeader);
1543void SetHeaderProperty(HeaderKind kind, MessageHeader header)
1712HeaderKind kind;
1716public Header(HeaderKind kind, MessageHeaderInfo info, HeaderProcessing processing)
1724public Header(HeaderKind kind, ReadableMessageHeader readableHeader, HeaderProcessing processing)
1732public Header(HeaderKind kind, MessageHeader header, HeaderProcessing processing)
1745public HeaderKind HeaderKind