87 references to HeaderKind
dotnet-svcutil-lib (87)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageHeaders.cs (87)
77HeaderKind kind = GetHeaderKind(bufferedHeader); 78if (kind != HeaderKind.Unknown) 125int index = FindHeaderProperty(HeaderKind.Action); 141SetHeaderProperty(HeaderKind.Action, null); 169int index = FindHeaderProperty(HeaderKind.FaultTo); 185SetHeaderProperty(HeaderKind.FaultTo, null); 193int index = FindHeaderProperty(HeaderKind.From); 209SetHeaderProperty(HeaderKind.From, null); 232int index = FindHeaderProperty(HeaderKind.MessageId); 248SetHeaderProperty(HeaderKind.MessageId, null); 273int index = FindHeaderProperty(HeaderKind.ReplyTo); 289SetHeaderProperty(HeaderKind.ReplyTo, null); 297int index = FindHeaderProperty(HeaderKind.To); 313SetHeaderProperty(HeaderKind.To, null); 349Insert(_headerCount, actionHeader, HeaderKind.Action); 354Insert(_headerCount, messageIDHeader, HeaderKind.MessageId); 359Insert(_headerCount, relatesToHeader, HeaderKind.RelatesTo); 364Insert(_headerCount, replyToHeader, HeaderKind.ReplyTo); 369Insert(_headerCount, toHeader, HeaderKind.To); 372private void Add(MessageHeader header, HeaderKind kind) 505if ((header.HeaderProcessing & HeaderProcessing.Understood) != 0 || header.HeaderKind != HeaderKind.Unknown) 556private Exception 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) 690private int FindHeaderProperty(HeaderKind kind) 711if (_headers[i].HeaderKind == HeaderKind.RelatesTo) 880private HeaderKind GetHeaderKind(MessageHeaderInfo headerInfo) 882HeaderKind headerKind = HeaderKind.Unknown; 896headerKind = HeaderKind.Action; 902headerKind = HeaderKind.From; 906headerKind = HeaderKind.FaultTo; 912headerKind = HeaderKind.MessageId; 918headerKind = HeaderKind.ReplyTo; 922headerKind = HeaderKind.RelatesTo; 928headerKind = HeaderKind.To; 940private void ValidateHeaderKind(HeaderKind headerKind) 944if (headerKind != HeaderKind.Action && headerKind != HeaderKind.To) 953if (headerKind != HeaderKind.Unknown && headerKind != HeaderKind.Action && headerKind != HeaderKind.To) 1183strings[(int)HeaderKind.To] = dictionary.To; 1184strings[(int)HeaderKind.Action] = dictionary.Action; 1185strings[(int)HeaderKind.MessageId] = dictionary.MessageId; 1186strings[(int)HeaderKind.RelatesTo] = dictionary.RelatesTo; 1187strings[(int)HeaderKind.ReplyTo] = dictionary.ReplyTo; 1188strings[(int)HeaderKind.From] = dictionary.From; 1189strings[(int)HeaderKind.FaultTo] = dictionary.FaultTo; 1216private void Insert(int headerIndex, MessageHeader header, HeaderKind kind) 1220if (kind != HeaderKind.Unknown) 1308HeaderKind kind = HeaderKind.Unknown; 1314kind = (HeaderKind)reader.IndexOfLocalName(localNames, _version.Addressing.DictionaryNamespace); 1317case HeaderKind.To: 1320case HeaderKind.Action: 1323case HeaderKind.MessageId: 1326case HeaderKind.RelatesTo: 1329case HeaderKind.ReplyTo: 1332case HeaderKind.From: 1335case HeaderKind.FaultTo: 1339kind = HeaderKind.Unknown; 1351if (kind != HeaderKind.Unknown || understood) 1363if (_headers[i].HeaderKind == HeaderKind.Unknown) 1443private void ReplaceAt(int headerIndex, MessageHeader header, HeaderKind kind) 1446if (kind != HeaderKind.Unknown) 1459SetHeaderProperty(HeaderKind.Action, null); 1466SetHeaderProperty(HeaderKind.Action, actionHeader); 1471SetHeaderProperty(HeaderKind.FaultTo, faultToHeader); 1476SetHeaderProperty(HeaderKind.From, fromHeader); 1481SetHeaderProperty(HeaderKind.MessageId, messageIDHeader); 1516ReplaceAt(index, relatesToHeader, HeaderKind.RelatesTo); 1521Add(relatesToHeader, HeaderKind.RelatesTo); 1527SetHeaderProperty(HeaderKind.ReplyTo, replyToHeader); 1532SetHeaderProperty(HeaderKind.To, toHeader); 1535private void SetHeaderProperty(HeaderKind kind, MessageHeader header) 1698private HeaderKind _kind; 1702public Header(HeaderKind kind, MessageHeaderInfo info, HeaderProcessing processing) 1710public Header(HeaderKind kind, ReadableMessageHeader readableHeader, HeaderProcessing processing) 1718public Header(HeaderKind kind, MessageHeader header, HeaderProcessing processing) 1731public HeaderKind HeaderKind