~cbehrens/openstack-guest-agents/lp764221

« back to all changes in this revision

Viewing changes to src/xenserver/windows/src/Rackspace.Cloud.Server.Agent.Service/AgentService.cs

  • Committer: Antony Messerli
  • Date: 2011-03-02 21:56:51 UTC
  • Revision ID: amesserl@rackspace.com-20110302215651-0clqh49spumg13c6
Initial commit Rackspace Windows Guest Agent

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
using System.ServiceProcess;
 
2
using Rackspace.Cloud.Server.Common.Logging;
 
3
 
 
4
namespace Rackspace.Cloud.Server.Agent.Service {
 
5
    partial class AgentService : ServiceBase {
 
6
        readonly ServerClass _serverClass;
 
7
 
 
8
        public AgentService() {
 
9
            InitializeComponent();
 
10
            _serverClass = new ServerClass(new Logger());
 
11
        }
 
12
 
 
13
        protected override void OnStart(string[] args) {
 
14
            _serverClass.Onstart();
 
15
        }
 
16
 
 
17
        protected override void OnStop() {
 
18
            _serverClass.Onstop();
 
19
        }
 
20
    }
 
21
}
 
 
b'\\ No newline at end of file'