2 writes to elements
System.ServiceModel (2)
System\ServiceModel\Security\ReceiveSecurityHeaderElementManager.cs (2)
32
this.
elements
= new ReceiveSecurityHeaderEntry[InitialCapacity];
153
this.
elements
= newElements;
22 references to elements
System.ServiceModel (22)
System\ServiceModel\Security\ReceiveSecurityHeaderElementManager.cs (22)
59
this.
elements
[this.count++].SetElement(elementCategory, element, bindingMode, id, false, null, supportingTokenTracker);
149
if (this.count == this.
elements
.Length)
151
ReceiveSecurityHeaderEntry[] newElements = new ReceiveSecurityHeaderEntry[this.
elements
.Length * 2];
152
Array.Copy(this.
elements
, 0, newElements, 0, this.count);
160
return this.
elements
[index].element;
166
return (T) this.
elements
[index].element;
172
element = this.
elements
[index];
178
return this.
elements
[index].elementCategory;
205
byte[] decryptedBuffer = this.
elements
[index].decryptedBuffer;
259
this.
elements
[index].bindingMode = bindingMode;
265
this.
elements
[index].element = element;
271
this.
elements
[index] = element;
280
Fx.Assert(this.
elements
[index].elementCategory == ReceiveSecurityHeaderElementCategory.EncryptedData, "Replaced item must be EncryptedData");
285
this.
elements
[index].PreserveIdBeforeDecryption();
286
this.
elements
[index].SetElement(elementCategory, element, bindingMode, id, true, decryptedBuffer, supportingTokenTracker);
304
this.
elements
[index].signed = true;
305
if (this.
elements
[index].supportingTokenTracker != null)
307
this.
elements
[index].supportingTokenTracker.IsSigned = true;
315
if (this.
elements
[i].elementCategory == ReceiveSecurityHeaderElementCategory.Timestamp &&
316
this.
elements
[i].id == id)
422
if (this.
elements
[i].id == id || this.
elements
[i].encryptedFormId == id)