You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
941 B
41 lines
941 B
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.Net.Sockets;
|
|
using System.Configuration;
|
|
using System.Net;
|
|
using QMAPP.FJC.BLL.Operation;
|
|
|
|
namespace AirbagSupportPackageService
|
|
{
|
|
public partial class Service1 : ServiceBase
|
|
{
|
|
RecieveData dataclass;
|
|
|
|
public Service1()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
protected override void OnStart(string[] args)
|
|
{
|
|
//装配数据工厂
|
|
QMFrameWork.Data.DataFactory.Configure(true);
|
|
QMFrameWork.Log.LogManager.Configure("log4net");
|
|
dataclass = new RecieveData();
|
|
dataclass.StartTCPServer();
|
|
}
|
|
|
|
protected override void OnStop()
|
|
{
|
|
dataclass.StopTCPServer();
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
|