internal LdapResponseMessage(Asn1LDAPResult result, Asn1LdapMessage message) : base(message) { ResultCode = result.ResultCode; MatchedDN = new LdapDistinguishedName(result.MatchedDN.Span); DiagnosticMessage = result.DiagnosticMessage.Span.LdapString(); Referrals = this.GetReferrals(result.Referral); }
internal override void SetProtocolOp(Asn1ProtocolOp op) { var asn = new Asn1LDAPResult { ResultCode = ResultCode, MatchedDN = MatchedDN.GetBytes(), DiagnosticMessage = DiagnosticMessage.LdapString(), Referral = this.GetReferrals(Referrals), }; SetProtocolOp(op, asn); }
internal override void SetProtocolOp(Asn1ProtocolOp op, Asn1LDAPResult result) { op.AddResponse = result; }
internal override void SetProtocolOp(Asn1ProtocolOp op, Asn1LDAPResult result) { op.SearchResultDone = result; }
internal abstract void SetProtocolOp(Asn1ProtocolOp op, Asn1LDAPResult result);