Beispiel #1
0
        protected override void OnStart(string[] args)
        {
            // TODO: Add code here to start your service.
            
            logger.Log(NLog.LogLevel.Info, "Service Host Started");

            ServiceRequest obj = new ServiceRequest();
            obj.ProcessServiceRequest();

        }
Beispiel #2
0
        public Service1()
        {


            ///for debug
            logger.Log(NLog.LogLevel.Info, "Service Started");
            ServiceRequest obj = new ServiceRequest();
            obj.ProcessServiceRequest();
            ///for debug
            ///

            InitializeComponent();
        }