public static Task DeleteGitHubReleaseAsync(
        this ICakeContext _, string tagName, GitHubReleaseSettings settings)
    {
        if (settings == null)
        {
            throw new ArgumentNullException(nameof(settings));
        }

        settings.EnsureValid();

        return(settings.Releaser.DeleteReleaseAsync(tagName));
    }
    public static Task <IReadOnlyCollection <Release> > GetAllReleasesAsync(
        this ICakeContext _, GitHubReleaseSettings settings)
    {
        if (settings == null)
        {
            throw new ArgumentNullException(nameof(settings));
        }

        settings.EnsureValid();

        return(settings.Releaser.GetAllReleasesAsync());
    }
    public static Task <Release> GetReleaseAsync(
        this ICakeContext _, int id, GitHubReleaseSettings settings)
    {
        if (settings == null)
        {
            throw new ArgumentNullException(nameof(settings));
        }

        settings.EnsureValid();

        return(settings.Releaser.GetReleaseAsync(id));
    }
 public static void DeleteGitHubRelease(
     this ICakeContext context, string tagName, GitHubReleaseSettings settings) =>
 context
 .DeleteGitHubReleaseAsync(tagName, settings)
 .GetAwaiter()
 .GetResult();
 public static void DeleteGitHubRelease(
     this ICakeContext context, int id, GitHubReleaseSettings settings) =>
 context
 .DeleteGitHubReleaseAsync(id, settings)
 .GetAwaiter()
 .GetResult();
 public static IReadOnlyCollection <Release> GetAllReleases(
     this ICakeContext context, GitHubReleaseSettings settings) =>
 context
 .GetAllReleasesAsync(settings)
 .GetAwaiter()
 .GetResult();