0

Active Directory と対話し、特定のユーザー操作を実行する Web サイトで作業しています。サーバーがオフラインの場合のタイムアウト状況を処理したい。私はこのようにコーディングしています

LdapConnection connection = new LdapConnection(new LdapDirectoryIdentifier(this._domain,    Convert.ToInt32(this._port)));
connection.SessionOptions.VerifyServerCertificate = new  VerifyServerCertificateCallback((con, cer) => true);
connection.SessionOptions.ProtocolVersion = 3; 
connection.AuthType = AuthType.Basic; 
connection.SessionOptions.SecureSocketLayer = true;
connection.Timeout = new TimeSpan(0, 0, 10);
4

0 に答える 0