Skip to content

Commit

Permalink
(cake-buildGH-762) Fix TeamCity Disposable
Browse files Browse the repository at this point in the history
Currently TeamCityDisposableExtensions extends TeamCityProvider and
therefore aren't accessible by default. Switched to extend
ITeamCityProvider. Also now returns IDisposable.
  • Loading branch information
Richard Simpson committed Mar 16, 2016
1 parent 4d3592e commit ff63464
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public static class TeamCityDisposableExtensions
/// <param name="teamCityProvider">TeamCity provider.</param>
/// <param name="blockName">The name of the report block.</param>
/// <returns>A disposable wrapper the writes the report block end.</returns>
public static TeamCityActionDisposable Block(this TeamCityProvider teamCityProvider, string blockName)
public static IDisposable Block(this ITeamCityProvider teamCityProvider, string blockName)
{
if (teamCityProvider == null)
{
Expand All @@ -29,7 +29,7 @@ public static TeamCityActionDisposable Block(this TeamCityProvider teamCityProvi
/// <param name="teamCityProvider">TeamCity provider.</param>
/// <param name="compilerName">The name of the build block.</param>
/// <returns>A disposable wrapper the writes the build block end.</returns>
public static TeamCityActionDisposable BuildBlock(this TeamCityProvider teamCityProvider, string compilerName)
public static IDisposable BuildBlock(this ITeamCityProvider teamCityProvider, string compilerName)
{
if (teamCityProvider == null)
{
Expand All @@ -42,7 +42,7 @@ public static TeamCityActionDisposable BuildBlock(this TeamCityProvider teamCity
/// <summary>
/// Disposable helper for writing TeamCity message blocks.
/// </summary>
public sealed class TeamCityActionDisposable : IDisposable
internal sealed class TeamCityActionDisposable : IDisposable
{
private readonly ITeamCityProvider _teamCityProvider;
private readonly Action<ITeamCityProvider> _disposeAction;
Expand Down

0 comments on commit ff63464

Please sign in to comment.