You are on page 1of 1

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Diagnostics; using System.Linq; using System.

ServiceProcess; using System.Text; using System.ServiceModel; namespace DataUpdationWinService { public partial class Service1 : ServiceBase { ServiceHost sHost; public Service1() { InitializeComponent(); } protected override void OnStart(string[] args) { sHost = new ServiceHost(typeof(WCFService.DataUpdationWCFServices)); sHost.Open(); } protected override void OnStop() { sHost.Close(); } } }

You might also like