Vista Sidebar Gadget for Cruise Control.NET

I am a Cruise Control.NET fan. I'm also playing with Windows Vista for quite some time and decided to create a Sidebar Gadget for Windows Vista to monitor my Cruise Control.NET enabled projects Although I've played with Sidebar gadgets before (see this post) this time is even more challenging as I'm not a Javascript geek. In general my goal was to duplicate the functionality provided by the CCTry. The CCTry application is intended to give developers to monitor the status of the projects registered into CC.NET. It also provides additional functionality ,which is out of the scope of my gadget. Actually the main reason to create this gadget was to play a little with a stuff like async web services invocation and xml parsing in he Sidebar gadget environment. So, first of all I had to decide what kind of communication scheme to use between my gadget and CC.NET Service. The CC.NET Service is running on machine other than my Vista box. As far as I know there are 2 basic communication options within the Sidebar Gadgets:
1. Making HTTP requests via XmlHttpRequest object
2. Using ActiveX objects
I decided to use the 1st option and then google provided me with this useful post about using CCTry managed API to communicate with the CC.NET service through .NET Remoting. I then quickly came with the following scheme:


The white squares are the components that I had to implement:
1. CC.NET Sidebar Gadget
2. CC.NET Xml Web Service
I've opened VS2005 and quickly implemented the CC.NET Web Service. I've implemented one method with the following signature:
[WebMethod]
public string[] GetProjectStatuses()

This method gets all projects and their statuses from the CC.NET Service by using .NET Remoting. It returns a string array (a string per registered project) then. The string contains the name of the project , its status and the CC.NET Dashboard url - all delimited by the | symbol.
Example:
My Project 1|Success|http://ccnetserver/ccnet
My Project|Failure|http://ccnetserver/ccnet

That was not quite elegant solution, but it was the shorter dev path :)
I've power up my Vista box then and soon I had my gadget running: The gadget displays a list of projects registered in the CC.NET Service. Green light means that the project is in good health and red means that the projects build is bad:

The gadget provides a settings dialog where the user may provide the CC.NET Web Service Url and time interval to poll the web service.


The CC.NET Gadget(and CC.NET Web Service) source code may be download from here.
Next time I'll blog about the CC.NET Gadget source code...stay tuned

Sidebar Gadget Links:
Vista Sidebar and Gadgets
Windows Sidebar team's blog
Daniel Moth blog

Further reading Vista Sidebar Gadget for Cruise Control.NET - Explained

 

Comments

# Vista Sidebar Gadget for Cruise Control.NET - Explained

Sunday, October 22, 2006 4:26 PM by Ruslan Trifonov's blog

My previous post was about my Vista Sidebar Gadget for Cruise Control.NET. Today I'll drop few lines

# AJAX and Pocket PC

Saturday, October 28, 2006 6:33 PM by Ruslan Trifonov's blog

Having my Vista gadget from my previous posts( 1 , 2 ), I decided to see if I'll be able to monitor

# SloDUG: Continuous Integration with CruiseControl.NET

Wednesday, November 29, 2006 4:48 PM by Bite my bytes

# Sidebar Gadget

Tuesday, December 19, 2006 8:32 PM by K. Scott Allen

I find the Sidebar gadgets in Windows Vista appealing. I never thought this would happen. I've looked...

# Sidebar Gadgets

Tuesday, December 19, 2006 8:51 PM by Mirror blog entries from the industry

I find the Sidebar gadgets in Windows Vista appealing. I never thought this would happen. I've looked

# Vista Gadget for CruiseControl.NET - CC.NET Monitor for Vista Sidebar 0.5

Monday, April 16, 2007 11:51 PM by CodeClimber

Vista Gadget for CruiseControl.NET - CC.NET Monitor for Vista Sidebar 0.5

# CC.NET Vista Sidebar Gadget

Wednesday, April 25, 2007 6:23 PM by Ruslan Trifonov's blog

Simone Chiaretta published his CC.NET Monitor for Vista Sidebar . It allows you to monitor the CruiseControl.NET

# re: Vista Sidebar Gadget for Cruise Control.NET

Monday, November 26, 2007 2:08 PM by vista

Hello - i have found this site, where its possible to upload your vista gadgets http://www.gadgetsdownload.com