コード例 #1
0
ファイル: DCService.cs プロジェクト: wangyunhui1993/CRHFuWubu
        protected override void OnStop()
        {
            LogHelper.WriteWithMethod($"State:OnStop");
            try
            {
                tcpListenerServer.NotifyDataEvent -= TcpListenerServer_NotifyDataEvent;;
                tcpListenerServer.Dispose();
                tcpListenerServer = null;

                ledCom.CleanFormatedContentText();

                ledCom.UnInitializeSCL();
                ledCom = null;
            }
            catch (Exception ex)
            {
                LogHelper.WriteException(ex);
            }

            base.OnStop();
        }