コード例 #1
0
ファイル: LdapServer.cs プロジェクト: zivillian/ldap.net
 private LdapServer(TcpListener listener, TopObjectClass rootDse)
 {
     _listener = listener;
     _clients  = new List <Task>();
     _cts      = new CancellationTokenSource();
     _rootDse  = rootDse;
     _controls = _rootDse.GetAttributes()
                 .OfType <SupportedControlAttribute>()
                 .Select(x => x.Oid)
                 .ToHashSet(StringComparer.OrdinalIgnoreCase);
 }
コード例 #2
0
ファイル: LdapServer.cs プロジェクト: zivillian/ldap.net
 protected LdapServer(IPEndPoint endPoint, TopObjectClass rootDse)
     : this(new TcpListener(endPoint), rootDse)
 {
     _localAddress = endPoint.Address;
 }
コード例 #3
0
ファイル: LdapServer.cs プロジェクト: zivillian/ldap.net
 protected LdapServer(ushort port, TopObjectClass rootDse)
     : this(TcpListener.Create(port), rootDse)
 {
 }