Click here to Skip to main content
15,887,313 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# Class Documentation on MSDN Pin
Afzaal Ahmad Zeeshan14-Mar-17 10:03
professionalAfzaal Ahmad Zeeshan14-Mar-17 10:03 
GeneralRe: C# Class Documentation on MSDN Pin
Winnie D14-Mar-17 11:37
Winnie D14-Mar-17 11:37 
SuggestionRe: C# Class Documentation on MSDN Pin
Richard Deeming14-Mar-17 11:15
mveRichard Deeming14-Mar-17 11:15 
QuestionDataGridView NOT adding with Entities models Pin
nabilg14-Mar-17 4:14
nabilg14-Mar-17 4:14 
QuestionManage a timeout on a ldap connection Pin
MarcSchmidtmayer13-Mar-17 1:04
MarcSchmidtmayer13-Mar-17 1:04 
AnswerRe: Manage a timeout on a ldap connection Pin
Garth J Lancaster13-Mar-17 1:34
professionalGarth J Lancaster13-Mar-17 1:34 
GeneralRe: Manage a timeout on a ldap connection Pin
MarcSchmidtmayer13-Mar-17 2:27
MarcSchmidtmayer13-Mar-17 2:27 
GeneralRe: Manage a timeout on a ldap connection Pin
Garth J Lancaster13-Mar-17 3:02
professionalGarth J Lancaster13-Mar-17 3:02 
hmmm, well, obviously you're using System.DirectoryServices.Protocols LdapConnection otherwise the Timeout property wouldn't be exposed (System.DirectoryServices was the old model that didn't expose/honour any timeout)

I wouldn't have expected 90 seconds though, and unfortunately these days I'm not in a position to test for you .. are you sure you're timing the right thing (sorry to play 'second guess a pro')

what happens if you put
stopWatch.Start();
connection.Bind();
stopWatch.Stop();
TimeSpan ts = stopWatch.Elapsed;

// Format and display the TimeSpan value.
string elapsedTime = String.Format("{0:00}:{1:00}:{2:00}.{3:00}", 
  ts.Hours, ts.Minutes, ts.Seconds, ts.Milliseconds / 10);
Console.WriteLine("Bind Time " + elapsedTime);

GeneralRe: Manage a timeout on a ldap connection Pin
MarcSchmidtmayer13-Mar-17 3:53
MarcSchmidtmayer13-Mar-17 3:53 
GeneralRe: Manage a timeout on a ldap connection Pin
Garth J Lancaster13-Mar-17 18:04
professionalGarth J Lancaster13-Mar-17 18:04 
GeneralRe: Manage a timeout on a ldap connection Pin
MarcSchmidtmayer13-Mar-17 20:19
MarcSchmidtmayer13-Mar-17 20:19 
AnswerRe: Manage a timeout on a ldap connection Pin
KamranShahid25-Nov-21 21:33
KamranShahid25-Nov-21 21:33 
GeneralRe: Manage a timeout on a ldap connection Pin
Richard Deeming25-Nov-21 21:54
mveRichard Deeming25-Nov-21 21:54 
GeneralRe: Manage a timeout on a ldap connection Pin
Richard MacCutchan25-Nov-21 23:57
mveRichard MacCutchan25-Nov-21 23:57 
GeneralRe: Manage a timeout on a ldap connection Pin
KamranShahid6-Dec-22 4:08
KamranShahid6-Dec-22 4:08 
QuestionHow to set up QuickSharp to run program in separate window? Pin
Member 1297423512-Mar-17 0:59
Member 1297423512-Mar-17 0:59 
GeneralRe: How to set up QuickSharp to run program in separate window? Pin
Richard MacCutchan12-Mar-17 21:45
mveRichard MacCutchan12-Mar-17 21:45 
AnswerRe: How to set up QuickSharp to run program in separate window? Pin
Pete O'Hanlon12-Mar-17 21:50
mvePete O'Hanlon12-Mar-17 21:50 
Questionmicrosoft report viewer simple invoice format code c# Pin
Member 1295109111-Mar-17 18:54
Member 1295109111-Mar-17 18:54 
AnswerRe: microsoft report viewer simple invoice format code c# Pin
Richard MacCutchan11-Mar-17 22:05
mveRichard MacCutchan11-Mar-17 22:05 
AnswerRe: microsoft report viewer simple invoice format code c# Pin
OriginalGriff11-Mar-17 22:29
mveOriginalGriff11-Mar-17 22:29 
AnswerRe: microsoft report viewer simple invoice format code c# Pin
Mycroft Holmes12-Mar-17 14:33
professionalMycroft Holmes12-Mar-17 14:33 
Question.NET Core, .NET Standard: trying to understand Pin
Super Lloyd10-Mar-17 4:01
Super Lloyd10-Mar-17 4:01 
AnswerRe: .NET Core, .NET Standard: trying to understand Pin
Gerry Schmitz10-Mar-17 5:10
mveGerry Schmitz10-Mar-17 5:10 
GeneralRe: .NET Core, .NET Standard: trying to understand Pin
Super Lloyd10-Mar-17 16:02
Super Lloyd10-Mar-17 16:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.