public void MakeReadOnly() { is_readonly = true; in_enc.MakeReadOnly(); in_sign.MakeReadOnly(); out_enc.MakeReadOnly(); out_sign.MakeReadOnly(); }
public void MakeReadOnly() { if (!_isReadOnly) { _incomingSignatureParts.MakeReadOnly(); _incomingEncryptionParts.MakeReadOnly(); _outgoingSignatureParts.MakeReadOnly(); _outgoingEncryptionParts.MakeReadOnly(); _isReadOnly = true; } }
public void MakeReadOnly() { if (!IsReadOnly) { IncomingSignatureParts.MakeReadOnly(); IncomingEncryptionParts.MakeReadOnly(); OutgoingSignatureParts.MakeReadOnly(); _outgoingEncryptionParts.MakeReadOnly(); IsReadOnly = true; } }
public void AddToReadOnlyCollection () { ScopedMessagePartSpecification s = new ScopedMessagePartSpecification (); s.MakeReadOnly (); Assert.AreEqual (true, s.IsReadOnly, "#1"); s.AddParts (new MessagePartSpecification (), "urn:myaction"); }