Skip to content
This repository was archived by the owner on Feb 12, 2019. It is now read-only.

Commit e3fa26f

Browse files
committed
Updated the README to now have the new methods from MarkdeVilliers for the Artifact downloading. Added a different method to ConnectAsGuest as this was confusing as pointed out by Eugene Petrenko. This is much more semantically correct
1 parent c3e3225 commit e3fa26f

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

README.md

+22-2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,18 @@ To get a list of running builds
3333
var client = new TeamCityClient("localhost:81");
3434
client.Connect("admin", "qwerty");
3535
var builds = client.Builds.ByBuildLocator(BuildLocator.RunningBuilds());
36+
37+
##Connecting to a server
38+
39+
To connect as an authenticated user:
40+
41+
var client = new TeamCityClient("localhost:81");
42+
client.Connect("username", "password");
43+
44+
To connect as a Guest:
45+
46+
var client = new TeamCityClient("localhost:81");
47+
client.ConnectAsGuest();
3648

3749
##API Interaction Groups
3850
There are many tasks that the TeamCity API can do for us. TeamCitySharp groups these tasks into specialist areas
@@ -105,6 +117,11 @@ Each area has its own list of methods available
105117
void PostRawSnapshotDependency(BuildTypeLocator locator, XmlElement rawXml);
106118
BuildConfig BuildType(BuildTypeLocator locator);
107119

120+
void DeleteConfiguration(BuildTypeLocator locator);
121+
void DeleteAllBuildTypeParameters(BuildTypeLocator locator);
122+
void PutAllBuildTypeParameters(BuildTypeLocator locator, IDictionary<string, string> parameters);
123+
void DownloadConfiguration(BuildTypeLocator locator, Action<string> downloadHandler);
124+
108125
###ServerInformation
109126
Server ServerInfo();
110127
List<Plugin> AllPlugins();
@@ -142,11 +159,14 @@ Each area has its own list of methods available
142159

143160
##Credits
144161

145-
* Copyright (c) 2013 Paul Stack (@stack72)
146-
* Thanks to the following contributors:
162+
Copyright (c) 2013 Paul Stack (@stack72)
163+
164+
Thanks to the following contributors:
165+
147166
* Barry Mooring (@codingbadger)
148167
* Simon Bartlett (@sibartlett)
149168
* Mike Larah (@MikeLarah)
150169
* Alexander Fast (@mizipzor)
151170
* Serge Baltic
152171
* Philipp Dolder
172+
* Mark deVilliers

0 commit comments

Comments
 (0)