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

Commit 4d9057c

Browse files
author
Turner, Dan
committed
fix: Use the correct overload of TeamCityCaller where a return object is not needed
Fixes #48
1 parent 5440a71 commit 4d9057c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: src/TeamCitySharp/ActionTypes/BuildConfigs.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,12 @@ public void SetConfigurationPauseStatus(BuildTypeLocator locator, bool isPaused)
101101

102102
public void PostRawArtifactDependency(BuildTypeLocator locator, string rawXml)
103103
{
104-
_caller.PostFormat<ArtifactDependency>(rawXml, HttpContentTypes.ApplicationXml, string.Empty, "/app/rest/buildTypes/{0}/artifact-dependencies", locator);
104+
_caller.PostFormat(rawXml, HttpContentTypes.ApplicationXml, "/app/rest/buildTypes/{0}/artifact-dependencies", locator);
105105
}
106106

107107
public void PostRawBuildStep(BuildTypeLocator locator, string rawXml)
108108
{
109-
_caller.PostFormat<BuildConfig>(rawXml, HttpContentTypes.ApplicationXml, string.Empty, "/app/rest/buildTypes/{0}/steps", locator);
109+
_caller.PostFormat(rawXml, HttpContentTypes.ApplicationXml, "/app/rest/buildTypes/{0}/steps", locator);
110110
}
111111

112112
public void PostRawBuildTrigger(BuildTypeLocator locator, string rawXml)

Diff for: src/TeamCitySharp/ActionTypes/VcsRoots.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public VcsRoot ById(string vcsRootId)
3333
public VcsRoot AttachVcsRoot(BuildTypeLocator locator, VcsRoot vcsRoot)
3434
{
3535
var xml = string.Format(@"<vcs-root-entry><vcs-root id=""{0}""/></vcs-root-entry>", vcsRoot.Id);
36-
return _caller.PostFormat<VcsRoot>(xml, HttpContentTypes.ApplicationXml, string.Empty, "/app/rest/buildTypes/{0}/vcs-root-entries", locator);
36+
return _caller.PostFormat<VcsRoot>(xml, HttpContentTypes.ApplicationXml, HttpContentTypes.ApplicationXml, "/app/rest/buildTypes/{0}/vcs-root-entries", locator);
3737
}
3838

3939
public void DetachVcsRoot(BuildTypeLocator locator, string vcsRootId)

0 commit comments

Comments
 (0)