diff --git a/README.md b/README.md index 4db5e6a8..c9a0a5e5 100644 --- a/README.md +++ b/README.md @@ -114,7 +114,7 @@ Each area has its own list of methods available void SetBuildTypeTemplate(BuildTypeLocator locatorBuildType, BuildTypeLocator locatorTemplate); void DeleteSnapshotDependency(BuildTypeLocator locator, string snapshotDependencyId); - void PostRawSnapshotDependency(BuildTypeLocator locator, XmlElement rawXml); + void PostRawSnapshotDependency(BuildTypeLocator locator, string rawXml); BuildConfig BuildType(BuildTypeLocator locator); void DeleteConfiguration(BuildTypeLocator locator); diff --git a/src/TeamCitySharp/ActionTypes/BuildConfigs.cs b/src/TeamCitySharp/ActionTypes/BuildConfigs.cs index cdcd4a0f..ddb09465 100644 --- a/src/TeamCitySharp/ActionTypes/BuildConfigs.cs +++ b/src/TeamCitySharp/ActionTypes/BuildConfigs.cs @@ -198,9 +198,9 @@ public void DeleteSnapshotDependency(BuildTypeLocator locator, string snapshotDe _caller.DeleteFormat("/app/rest/buildTypes/{0}/snapshot-dependencies/{1}", locator, snapshotDependencyId); } - public void PostRawSnapshotDependency(BuildTypeLocator locator, XmlElement rawXml) + public void PostRawSnapshotDependency(BuildTypeLocator locator, string rawXml) { - _caller.PostFormat(rawXml.OuterXml, HttpContentTypes.ApplicationXml, "/app/rest/buildTypes/{0}/snapshot-dependencies", locator); + _caller.PostFormat(rawXml, HttpContentTypes.ApplicationXml, "/app/rest/buildTypes/{0}/snapshot-dependencies", locator); } public BuildConfig BuildType(BuildTypeLocator locator) diff --git a/src/TeamCitySharp/ActionTypes/IBuildConfigs.cs b/src/TeamCitySharp/ActionTypes/IBuildConfigs.cs index 2829ec2d..72a22f5a 100644 --- a/src/TeamCitySharp/ActionTypes/IBuildConfigs.cs +++ b/src/TeamCitySharp/ActionTypes/IBuildConfigs.cs @@ -61,7 +61,7 @@ public interface IBuildConfigs /// /// ]]> /// - void PostRawSnapshotDependency(BuildTypeLocator locator, XmlElement rawXml); + void PostRawSnapshotDependency(BuildTypeLocator locator, string rawXml); /// /// Locates a build type by its locator.