5 writes to _headers
dotnet-svcutil-lib (5)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageHeaders.cs (5)
97
_headers
= new Header[InitialHeaderCount];
106
_headers
= new Header[_headerCount];
1148
_headers
= new Header[initialSize];
1243
_headers
= new Header[1];
1249
_headers
= newHeaders;
79 references to _headers
dotnet-svcutil-lib (79)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageHeaders.cs (79)
107
Array.Copy(headers.
_headers
,
_headers
, _headerCount);
116
Init(collection._version, collection.
_headers
.Length);
128
ActionHeader actionHeader =
_headers
[index].HeaderInfo as ActionHeader;
147
get { return
_headers
.Length <= MaxRecycledArrayLength; }
172
FaultToHeader faultToHeader =
_headers
[index].HeaderInfo as FaultToHeader;
196
FromHeader fromHeader =
_headers
[index].HeaderInfo as FromHeader;
235
MessageIDHeader messageIDHeader =
_headers
[index].HeaderInfo as MessageIDHeader;
276
ReplyToHeader replyToHeader =
_headers
[index].HeaderInfo as ReplyToHeader;
300
ToHeader toHeader =
_headers
[index].HeaderInfo as ToHeader;
338
return
_headers
[index].HeaderInfo;
384
_headers
[i].HeaderProcessing |= HeaderProcessing.Understood;
385
MessageHeaders.TraceUnderstood(
_headers
[i].HeaderInfo);
394
if ((object)
_headers
[i].HeaderInfo == (object)headerInfo)
396
if ((
_headers
[i].HeaderProcessing & HeaderProcessing.Understood) != 0)
424
Header header =
_headers
[i];
431
_headers
[i] = new Header(header.HeaderKind, CaptureBufferedHeader(reader,
472
_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();
866
MessageHeaderInfo headerInfo =
_headers
[index].HeaderInfo;
970
switch (
_headers
[headerIndex].HeaderType)
973
return
_headers
[headerIndex].ReadableHeader.GetHeaderReader();
975
MessageHeader writeableHeader =
_headers
[headerIndex].MessageHeader;
977
_headers
[headerIndex] = new Header(
_headers
[headerIndex].HeaderKind, bufferedHeader,
_headers
[headerIndex].HeaderProcessing);
983
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.InvalidEnumValue,
_headers
[headerIndex].HeaderType)));
999
RelatesToHeader relatesToHeader =
_headers
[index].HeaderInfo as RelatesToHeader;
1042
if (
_headers
[index].HeaderType != HeaderType.WriteableHeader)
1070
switch (
_headers
[index].HeaderType)
1074
return
_headers
[index].MessageHeader;
1076
messageHeader = CaptureBufferedHeader(_bufferedMessageData,
_headers
[index].HeaderInfo, index);
1077
_headers
[index] = new Header(
_headers
[index].HeaderKind, messageHeader,
_headers
[index].HeaderProcessing);
1081
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.InvalidEnumValue,
_headers
[index].HeaderType)));
1091
if (
_headers
[headerIndex].HeaderProcessing == HeaderProcessing.MustUnderstand)
1096
MessageHeaderInfo headerInfo =
_headers
[headerIndex].HeaderInfo;
1116
if (
_headers
[headerIndex].HeaderProcessing == HeaderProcessing.MustUnderstand)
1120
if (
_headers
[headerIndex].HeaderInfo.Actor == actors[actorIndex])
1239
if (_headerCount ==
_headers
.Length)
1241
if (
_headers
.Length == 0)
1247
Header[] newHeaders = new Header[
_headers
.Length * 2];
1248
_headers
.CopyTo(newHeaders, 0);
1258
if (
_headers
[i].HeaderType == HeaderType.BufferedMessageHeader)
1265
Array.Copy(
_headers
, headerIndex,
_headers
, headerIndex + 1, _headerCount - headerIndex);
1267
_headers
[headerIndex] = header;
1274
return (
_headers
[i].HeaderProcessing & HeaderProcessing.Understood) != 0;
1283
if ((object)
_headers
[i].HeaderInfo == (object)headerInfo)
1363
if (
_headers
[i].HeaderKind == HeaderKind.Unknown)
1365
headerInfoCache.ReturnHeaderInfo(
_headers
[i].HeaderInfo);
1382
if ((object)
_headers
[i].HeaderInfo == (object)headerInfo)
1384
if ((
_headers
[i].HeaderProcessing & HeaderProcessing.Understood) == 0)
1390
_headers
[i].HeaderProcessing &= ~HeaderProcessing.Understood;
1403
MessageHeaderInfo info =
_headers
[i].HeaderInfo;
1419
if (_bufferedMessageData != null &&
_headers
[headerIndex].HeaderType == HeaderType.BufferedMessageHeader)
1421
Array.Copy(
_headers
, headerIndex + 1,
_headers
, headerIndex, _headerCount - headerIndex - 1);
1422
_headers
[--_headerCount] = new Header();
1450
_headers
[headerIndex] = new Header(kind, readableMessageHeader, processing);
1452
_headers
[headerIndex] = new Header(kind, header, processing);
1585
switch (
_headers
[headerIndex].HeaderType)
1589
_headers
[headerIndex].MessageHeader.WriteStartHeader(writer, _version);
1595
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.InvalidEnumValue,
_headers
[headerIndex].HeaderType)));
1617
switch (
_headers
[headerIndex].HeaderType)
1621
_headers
[headerIndex].MessageHeader.WriteHeaderContents(writer, _version);
1627
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.InvalidEnumValue,
_headers
[headerIndex].HeaderType)));