/// <summary>
 /// Constructor
 /// </summary>
 /// <param name="adtsLdapClient">
 /// an AdtsLdapClient object that provides the transport/packets/security services.
 /// </param>
 internal AdtsLdapClientDecoder(AdtsLdapClient adtsLdapClient)
 {
     this.client = adtsLdapClient;
     if (this.client.Context.ClientVersion == AdtsLdapVersion.V2)
     {
         this.decoder = new AdtsLdapV2Decoder();
     }
     else
     {
         this.decoder = new AdtsLdapV3Decoder();
     }
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="adtsLdapClient">
 /// an AdtsLdapClient object that provides the transport/packets/security services.
 /// </param>
 internal AdtsLdapClientDecoder(AdtsLdapClient adtsLdapClient)
 {
     this.client = adtsLdapClient;
     if (this.client.Context.ClientVersion == AdtsLdapVersion.V2)
     {
         this.decoder = new AdtsLdapV2Decoder();
     }
     else
     {
         this.decoder = new AdtsLdapV3Decoder();
     }
 }