Hi Nic,

 

Although I can't answer the proxy server question I can address a few
things for you:

 

1.       The recommended way of getting a TeamFoundationServer object is
TeamFoundationServer tfs =
TeamFoundationServerFactory.GetServer("http://ourTFSserver.ourDomain.com
", ...);

a.       This will re-use an existing connection if it exists.

2.       Rather than passing an explicit credential you can pass in a
new UICredentialsProvider.

a.       This will attempt integrated authentication and if that fails
will prompt for credentials using the standard credentials UI.

3.       The recommended way of getting a WorkItemStore is WorkItemStore
wistore = (WorkItemStore)(tfs.GetService(typeof(WorkItemStore)));

a.       I'm not sure but this *may* reduce the memory jump.

 

You may find my Getting Started with the TFS API presentation useful:

http://www.bartholomew.id.au/Presentations.ashx

 

William

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Nic Stronell
Sent: Wednesday, 2 July 2008 8:25 AM
To: [email protected]
Subject: [OzTFS] Adding Proxy to TFS calls

 

We have built a custom application to enable our developers to track
time into TFS work items.  We are using the TFS libraries to make the
connection to the TFS server, essentially:

 

TeamFoundationServer tfs = new
TeamFoundationServer("http://ourTFSserver.ourDomain.com";, new
NetworkCredential("username", "password", "ourADdomain"));

WorkItemStore wistore = new WorkItemStore(tfs);

WorkItem workItem = wistore.GetWorkItem(workItemID);  

 

Our issue is that some developers are offsite and need to go through the
proxy server at that site.  I can't figure out a way to have this TFS
access go through that proxy.

 

Help appreciated.

 

Also, if anyone know why the memory usage of the application jump 50MB
on the "WorkItemStore wistore = new WorkItemStore(tfs);" command and if
this can be reduced, that would also be helpful.

 

Nic.

OzTFS.com - to unsubscribe from this list, send a message back to the
list with 'unsubscribe' as the subject. View the web archives at
http://www.mail-archive.com/[email protected]/
Powered by mailenable.com, supported by www.readify.net 




OzTFS.com - to unsubscribe from this list, send a message back to the list with 
'unsubscribe' as the subject. View the web archives at 
http://www.mail-archive.com/[email protected]/

Powered by mailenable.com, supported by www.readify.net

Reply via email to