Skip to content

AlexShkorParalect/TeamCitySharper

 
 

Repository files navigation

TeamCitySharper

About

TeamCitySharper is a .NET 4 library to access TeamCity REST API in both Async and Sync ways.

Usage

Async usage

        var teamCityClient = new TeamCityClient("username", "password", "yourServerUrl");
        
        IEnumerable<Task<Project>> allProjects = teamCityClient.GetProjectDetailsAsync();
        
        foreach (var task in allProjects)
        {
            var project = task.Result;
        
            task.ContinueWith(t => WriteLineProjects(project));
        }

Sync usage

        var teamCityClient = new TeamCityClient("username", "password", "yourServerUrl");
        
        IEnumerable<Project> allProjects = teamCityClient.GetProjectDetailsAsync();
        
        foreach (var project in allProjects)
        {       
            WriteLineProjects(project);
        }

Build

You might use the ClickToBuild.bat which use psake or just open the solution in Visual Studio 2010

Contribute

https://github.com/laurentkempe/TeamCitySharper

Support / Help

Follow (@laurentkempe) on twitter.

Report bugs & issues on https://github.com/laurentkempe/TeamCitySharper/issues

Credits and Thanks

Copyright (c) 2102 Laurent Kempé (@laurentkempe)

About

.NET 4 library to access TeamCity REST API in both Async and Sync ways

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published