Browsed by
Tag: C#

Accessing GitHub using REST and C#

Accessing GitHub using REST and C#

Some time ago I created a GitStat app and described it in this post. To do that I used the libgit2sharp library, which I also planned to use for git plugin for TeamScreen. Unfortunately, at the time I’m writing this post, there isn’t the libgit2sharp version for .NET Core. I needed alternate approach so I decided to go for accessing GitHub repository via its REST API. I wanted to have general solution, but¬†it’s just not possible at this time ūüôĀ…

Read More Read More

Creating ProjectTeam plugin for TeamScreen

Creating ProjectTeam plugin for TeamScreen

As I mentioned in the first post of this series, when you are going through IT company, TV screens with a list of running/failing builds aren’t an uncommon thing. Depending on the size of the company you can pass many of them, but all you see it’s just a set of different words, you have not a clue what actually means. You pass these people every day and very often all you know about them are just those build names….

Read More Read More

Creating health check dashboard using Warden

Creating health check dashboard using Warden

Hello! Today’s post for Get Noticed competition will be about creating a dynamic dashboard for health checks. The goal of this is to have one place when you can check if every system/environment you maintain actually works. To do this I’m gonna use Warden, which is a library created especially for this task, by the last year winner of Get Noticed competition, Piotr Gankiewicz. Warden support a lot of different types of checks, can work in real-time and even send…

Read More Read More

Plugin architecture with ASP.NET Core and Autofac

Plugin architecture with ASP.NET Core and Autofac

The plugin architecture is definitely¬†the trickiest part of TeamScreen yet. I encountered many problems during its creation and needed to compromise on few things. Treat this article more like proof of concept rather than the fully-mature solution – it works, but I believe it could be done better. If you have better idea, please share it in comments – I’m always open to constructive feedback ūüôā The requirements for the architecture are – the plugin itself is packed in a¬†DLL¬†file…

Read More Read More

TeamScreen – general progress update

TeamScreen – general progress update

I though it’ll be easier. I can say, that a have a lot of external stuff that needs to be done and I don’t spend as much time as I think I should on each post – nevertheless, these are just excuses. I’m¬†stumbling, but I’m still moving forward ūüôā Today’s post will be about introducing some order into project – some general refactoring, better UI and some features that should have¬†been implemented before – stuff, that’ll make this project prettier…

Read More Read More

ASP.NET Core default project content

ASP.NET Core default project content

Post about creating ASP.NET Core project¬†very briefly described how to setup project without much thinking, this time it’ll be a little more in depth. I’ll describe what initial project contains, what are differences between ASP.Core and ASP.NET MVC, what is new. Setup is same as before – empty ASP.NET Core project for .NET Core 1.1 with Web Application template, Individual Accounts authentication and without Docker support. So this is how empty looks like, If you had previous experience with ASP.NET…

Read More Read More

JIRA integration with C# and REST API

JIRA integration with C# and REST API

JIRA is one of the most popular tools for IT teams to manage work and it’ll be next integration for TeamScreen. Documentation¬†is straightforward, so It was easy for me to do it. Same as with TeamCity integration I’ll leverage the¬†power of REST API and RestEase library.¬†For¬†authentication, you have two options¬†– basic HTTP authentication and oath. Recommended is OAuth,¬†but for now, I’ll use basic HTTP authentication, because at the moment the¬†priority is just to connect and display issues from JIRA. JIRA…

Read More Read More

Configuration in .NET Core

Configuration in .NET Core

Setting up From the beginning of .NET we used web.config or app.config files for application configuration. When you’re create new ASP.NET Core project you’ll no longer find those files, instead you’ll have appsettings.json file and in Startup class constructor you’ll find setup of it: This configuration tells us to search for settings file in main application directory (env.ContentRootPath), use appsettings.json file, that must exist (optional: false) and reload whole application, when it’s changed (reloadOnChange: true – available in .NET Core…

Read More Read More

TeamCity integration with C# and REST API

TeamCity integration with C# and REST API

As I mentioned in my previous Get Noticed post.¬†TeamScreen first integration will be with TeamCity. For those who don’t know TeamCity is a continuous integration tool created by awesome guys from JetBrains company that brought you Resharper, IntelliJ, WebSharper and many other great tools. What I want from TeamCity is a list of builds and statuses for them. A quick search in google gave me this page, which¬†describes how to connect to TeamCity and get an¬†info I need using REST…

Read More Read More