示例#1
0
        private void frmServiceMain_Load(object sender, EventArgs e)
        {
            EventLogSystemLog _log = new EventLogSystemLog("SinoSysWatchServiceLog");

            _log.WriteLog("缉私系统运行监控维护服务开始启动(程序方式)!", EventLogEntryType.Information);

            serverPluginService = new ServerPluginService(this);
            serviceContainer.AddService(typeof(IServerPluginService), serverPluginService);

            Assembly     SysAssembly     = Assembly.GetEntryAssembly();
            AssemblyName SysAssemblyName = SysAssembly.GetName();

            this.label1.Text = string.Format("版本号:{0}", SysAssemblyName.Version.ToString());

            //启动所有的WCF服务
            serverPluginService.LoadAllPlugin();
            serverPluginService.LoadPluginDescript();
            ServerCommon _sc = new ServerCommon();

            _sc.Init(this as IServerApplication, false);
        }