Showing results for C# - Buck Hodges

Jul 19, 2011
0
0

Knowing which thread BackgroundWorker will use for its events

Buck Hodges
Buck Hodges

[UPDATE 7/19/2011]  Stephen pointed me to his article covering this and more in February issue of MSDN Magazine, and I recommend it: http://msdn.microsoft.com/en-us/magazine/gg598924.aspx.We hit this recently, so I thought I’d post this email from Chad, a developer on version control, for anyone else who may have missed this ...

C#
Mar 20, 2006
0
0

More posts from Tim

Buck Hodges
Buck Hodges

Tim Noonan is on a blog-posting roll.  Not long ago, he did quite a bit of work to get better performance in Visual Studio when dealing with large numbers of pending changes, among other things.  Much of the performance improvements came from better use of the ListView: inserting initial items and setting checked states.He's ...

Team Foundation ServerSource ControlC#
Sep 11, 2005
0
0

How wide is a string when displayed in the console window?

Buck Hodges
Buck Hodges

Not too long ago, I had to fix the command line output for tf.exe, the Team Foundation Version Control command line app, so that output would be formatted properly for console windows (cmd.exe) using double-byte code pages.The code originally computed the output display width as the length of the string.  However, that's not correct when ...

C#
Sep 9, 2005
0
0

Team Foundation Version Control client API example

Buck Hodges
Buck Hodges

[Update 3/16/2006]  I have decided to remove this version to reduce confusion.  Please see http://blogs.msdn.com/buckh/archive/2006/03/15/552288.aspx for the RTM v1 example...

Team Foundation ServerSource ControlC#
Feb 15, 2005
0
0

Network programming links

Buck Hodges
Buck Hodges

Adarsh Khare, who is a tester for the .NET networking classes, has useful blog.  Recent posts include the new NetworkInformation namespace that includes things like network availability events and a reference to an MSDN article on running ASMX without IIS...

C#
Feb 1, 2005
0
0

Timeouts on the HttpWebRequest (and thus SOAP proxies)

Buck Hodges
Buck Hodges

Last summer I wrote several posts on using HttpWebRequest and SOAP proxies.  Recently I was working on code that needed to handle requests that could take a really long time for the server to process.  The client would give up and close the network connection long before the request completed.The code had tried to control that using the ...

C#
Aug 13, 2004
0
0

Handling HTTP response codes in SOAP proxies

Buck Hodges
Buck Hodges

Continuing with the last post on authentication issues with wsdl.exe-generated SOAP proxies, you may need to handle HTTP status codes to provide custom exceptions.  To do this, the SoapHttpClientProtocol class (actually its parent HttpWebClientProtocol) provides a pair of GetWebResponse() methods for derived classes to override. ...

C#
Aug 10, 2004
0
0

More on working with SOAP proxies

Buck Hodges
Buck Hodges

In my last post on authentication and SOAP proxies, I mentioned setting the Credentials property on the wsdl.exe-generated proxy object.  Another way to do it and do other things is to override the GetWebRequest() method. In the following example, the culture is set in the standard HTTP header to tell the server what culture to use for any ...

C#
Jul 29, 2004
0
0

Authentication and SOAP proxies

Buck Hodges
Buck Hodges

My last post discussed authentication in web service calls using HttpWebRequest.  That caused one reader to wonder how this ties back to SOAP requests.If you are using wsdl.exe to generate a SOAP proxy class, it derives from System.Web.Services.Protocols.SoapHttpClientProtocol.  That class has a Credentials property. If you want to use ...

C#
Jul 28, 2004
0
0

Authentication in web services with HttpWebRequest

Buck Hodges
Buck Hodges

Hatteras has three tiers: client, middle, and data.  The middle tier is an ASP.NET web service on a Windows 2003 Server running IIS 6.  When the client (we use C# for both it and the middle tier) connects to the middle tier, it must authenticate with IIS 6.  Depending upon the IIS configuration, that may be negotiate, NTLM, Kerberos...

C#