internal Asn1PartialAttribute GetAsn() { var result = new Asn1PartialAttribute { Type = Type.GetBytes(), Values = Values.ToArray() }; return(result); }
internal override void SetProtocolOp(Asn1ProtocolOp op) { var attributes = new Asn1PartialAttribute[Attributes.Count]; if (attributes.Length == 0) { throw new ArgumentException("at least one attribute required"); } for (int i = 0; i < Attributes.Count; i++) { attributes[i] = Attributes[i].GetAsn(); } op.AddRequest = new Asn1AddRequest { Entry = Entry.GetBytes(), Attributes = attributes }; }
internal LdapAttribute(Asn1PartialAttribute attribute) { Type = new LdapAttributeDescription(attribute.Type.Span); Values = attribute.Values; }