Click here to Skip to main content
15,885,782 members
Articles / General Programming / Tools

.NET REST service

Rate me:
Please Sign up or sign in to vote.
4.98/5 (16 votes)
25 May 2012CPOL4 min read 44.1K   637   42  
Self-installing version tracking REST service for builds
using System;
using System.Collections.Generic;
using System.Linq;
using System.ComponentModel;
using inst=System.Configuration.Install;
using System.ServiceProcess;
using System.Net.Sockets;
using System.Text;
using System.IO;

namespace Versioner
{
    [RunInstaller(true)]
    public class Installer : inst.Installer
    {
        public Installer()
        {
            Installers.Add(new ServiceProcessInstaller() { Account = ServiceAccount.LocalSystem });
            Installers.Add(new ServiceInstaller()
            {
                DelayedAutoStart = false,
                StartType = ServiceStartMode.Automatic,
                Description = "Tracks version numbers for build resources",
                ServiceName = Service.Name,
                DisplayName = "Versioner Service",
            });
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Engineer Big Company
United States United States
My professional career began as a developer fixing bugs on Microsoft Word97 and I've been fixing bad habits ever since. Now I do R&D work writing v1 line of business applications mostly in C#/.Net.

I've been an avid pilot/instructor for 13+ years, I've built two airplanes and mostly fly gliders now for fun. I commute in an all-electric 1986 BMW 325 conversion.

I'd like to get back to my academic roots of programming 3D analysis applications to organize complex systems.

Comments and Discussions