5 writes to headers
System.ServiceModel (5)
System\ServiceModel\Channels\MessageHeaders.cs (5)
96
this.
headers
= new Header[InitialHeaderCount];
105
this.
headers
= new Header[headerCount];
1156
headers
= new Header[initialSize];
1251
headers
= new Header[1];
1257
headers
= newHeaders;
79 references to headers
System.ServiceModel (79)
System\ServiceModel\Channels\MessageHeaders.cs (79)
106
Array.Copy(headers.
headers
, this.
headers
, headerCount);
115
Init(collection.version, collection.
headers
.Length);
127
ActionHeader actionHeader =
headers
[index].HeaderInfo as ActionHeader;
146
get { return
headers
.Length <= MaxRecycledArrayLength; }
171
FaultToHeader faultToHeader =
headers
[index].HeaderInfo as FaultToHeader;
195
FromHeader fromHeader =
headers
[index].HeaderInfo as FromHeader;
234
MessageIDHeader messageIDHeader =
headers
[index].HeaderInfo as MessageIDHeader;
275
ReplyToHeader replyToHeader =
headers
[index].HeaderInfo as ReplyToHeader;
299
ToHeader toHeader =
headers
[index].HeaderInfo as ToHeader;
337
return
headers
[index].HeaderInfo;
383
headers
[i].HeaderProcessing |= HeaderProcessing.Understood;
384
MessageHeaders.TraceUnderstood(
headers
[i].HeaderInfo);
393
if ((object)
headers
[i].HeaderInfo == (object)headerInfo)
395
if ((
headers
[i].HeaderProcessing & HeaderProcessing.Understood) != 0)
423
Header header =
headers
[i];
430
headers
[i] = new Header(header.HeaderKind, CaptureBufferedHeader(reader,
471
headers
[i] = new Header();
503
Header header = collection.
headers
[headerIndex];
553
array[i + index] =
headers
[i].HeaderInfo;
612
if (
headers
[i].HeaderKind != HeaderKind.Unknown)
614
MessageHeaderInfo info =
headers
[i].HeaderInfo;
634
if (
headers
[i].HeaderKind == HeaderKind.Unknown)
636
MessageHeaderInfo info =
headers
[i].HeaderInfo;
669
MessageHeaderInfo info =
headers
[i].HeaderInfo;
695
if (
headers
[i].HeaderKind == kind)
711
if (
headers
[i].HeaderKind == HeaderKind.RelatesTo)
762
if ((
headers
[i].HeaderProcessing & HeaderProcessing.Understood) != 0)
764
understoodHeaders.Add(
headers
[i].HeaderInfo);
791
return
headers
[bufferedMessageHeaderIndex].ReadableHeader.GetHeaderReader();
867
MessageHeaderInfo headerInfo =
headers
[index].HeaderInfo;
971
switch (
headers
[headerIndex].HeaderType)
974
return
headers
[headerIndex].ReadableHeader.GetHeaderReader();
976
MessageHeader writeableHeader =
headers
[headerIndex].MessageHeader;
978
headers
[headerIndex] = new Header(
headers
[headerIndex].HeaderKind, bufferedHeader,
headers
[headerIndex].HeaderProcessing);
984
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.InvalidEnumValue,
headers
[headerIndex].HeaderType)));
1000
RelatesToHeader relatesToHeader =
headers
[index].HeaderInfo as RelatesToHeader;
1043
if (
headers
[index].HeaderType != HeaderType.WriteableHeader)
1071
switch (
headers
[index].HeaderType)
1075
return
headers
[index].MessageHeader;
1077
messageHeader = CaptureBufferedHeader(bufferedMessageData,
headers
[index].HeaderInfo, index);
1078
headers
[index] = new Header(
headers
[index].HeaderKind, messageHeader,
headers
[index].HeaderProcessing);
1082
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.InvalidEnumValue,
headers
[index].HeaderType)));
1092
if (
headers
[headerIndex].HeaderProcessing == HeaderProcessing.MustUnderstand)
1097
MessageHeaderInfo headerInfo =
headers
[headerIndex].HeaderInfo;
1124
if (
headers
[headerIndex].HeaderProcessing == HeaderProcessing.MustUnderstand)
1128
if (
headers
[headerIndex].HeaderInfo.Actor == actors[actorIndex])
1247
if (headerCount ==
headers
.Length)
1249
if (
headers
.Length == 0)
1255
Header[] newHeaders = new Header[
headers
.Length * 2];
1256
headers
.CopyTo(newHeaders, 0);
1266
if (
headers
[i].HeaderType == HeaderType.BufferedMessageHeader)
1273
Array.Copy(
headers
, headerIndex,
headers
, headerIndex + 1, headerCount - headerIndex);
1275
headers
[headerIndex] = header;
1282
return (
headers
[i].HeaderProcessing & HeaderProcessing.Understood) != 0;
1291
if ((object)
headers
[i].HeaderInfo == (object)headerInfo)
1371
if (
headers
[i].HeaderKind == HeaderKind.Unknown)
1373
headerInfoCache.ReturnHeaderInfo(
headers
[i].HeaderInfo);
1390
if ((object)
headers
[i].HeaderInfo == (object)headerInfo)
1392
if ((
headers
[i].HeaderProcessing & HeaderProcessing.Understood) == 0)
1398
headers
[i].HeaderProcessing &= ~HeaderProcessing.Understood;
1411
MessageHeaderInfo info =
headers
[i].HeaderInfo;
1427
if (bufferedMessageData != null &&
headers
[headerIndex].HeaderType == HeaderType.BufferedMessageHeader)
1429
Array.Copy(
headers
, headerIndex + 1,
headers
, headerIndex, headerCount - headerIndex - 1);
1430
headers
[--headerCount] = new Header();
1458
headers
[headerIndex] = new Header(kind, readableMessageHeader, processing);
1460
headers
[headerIndex] = new Header(kind, header, processing);
1593
switch (
headers
[headerIndex].HeaderType)
1597
headers
[headerIndex].MessageHeader.WriteStartHeader(writer, this.version);
1603
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.InvalidEnumValue,
headers
[headerIndex].HeaderType)));
1625
switch (
headers
[headerIndex].HeaderType)
1629
headers
[headerIndex].MessageHeader.WriteHeaderContents(writer, this.version);
1635
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.InvalidEnumValue,
headers
[headerIndex].HeaderType)));