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

Commit 0b788b1

Browse files
author
Turner, Dan
committed
fix: Addressing an API consistency issue
Fixes #47
1 parent 5440a71 commit 0b788b1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Each area has its own list of methods available
114114

115115
void SetBuildTypeTemplate(BuildTypeLocator locatorBuildType, BuildTypeLocator locatorTemplate);
116116
void DeleteSnapshotDependency(BuildTypeLocator locator, string snapshotDependencyId);
117-
void PostRawSnapshotDependency(BuildTypeLocator locator, XmlElement rawXml);
117+
void PostRawSnapshotDependency(BuildTypeLocator locator, string rawXml);
118118
BuildConfig BuildType(BuildTypeLocator locator);
119119

120120
void DeleteConfiguration(BuildTypeLocator locator);

src/TeamCitySharp/ActionTypes/BuildConfigs.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,9 @@ public void DeleteSnapshotDependency(BuildTypeLocator locator, string snapshotDe
198198
_caller.DeleteFormat("/app/rest/buildTypes/{0}/snapshot-dependencies/{1}", locator, snapshotDependencyId);
199199
}
200200

201-
public void PostRawSnapshotDependency(BuildTypeLocator locator, XmlElement rawXml)
201+
public void PostRawSnapshotDependency(BuildTypeLocator locator, string rawXml)
202202
{
203-
_caller.PostFormat(rawXml.OuterXml, HttpContentTypes.ApplicationXml, "/app/rest/buildTypes/{0}/snapshot-dependencies", locator);
203+
_caller.PostFormat(rawXml, HttpContentTypes.ApplicationXml, "/app/rest/buildTypes/{0}/snapshot-dependencies", locator);
204204
}
205205

206206
public BuildConfig BuildType(BuildTypeLocator locator)

src/TeamCitySharp/ActionTypes/IBuildConfigs.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public interface IBuildConfigs
6161
/// </snapshot-dependency>
6262
/// ]]></code>
6363
/// </summary>
64-
void PostRawSnapshotDependency(BuildTypeLocator locator, XmlElement rawXml);
64+
void PostRawSnapshotDependency(BuildTypeLocator locator, string rawXml);
6565

6666
/// <summary>
6767
/// <para>Locates a build type by its locator.</para>

0 commit comments

Comments
 (0)