• 大小: 0.98M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-09-20
  • 语言: 其他
  • 标签: 其他  

资源简介

OrayGuard.rar

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using OrayGuard;

namespace TestProcess
{
    public partial class Form1 : Form
    {
        private bool bugOccurred = false; //模拟是否已经出现了严重bug!

        public Form1()
        {
            InitializeComponent();
            
            GuardianProxy.Initialize(9100 20);
            this.timer1.Start();

            this.label_state.Text = “当前状态:正常服务中“;
            this.label_startTime.Text = “启动时间:“ + DateTime.Now.ToString();
        }

        private void timer1_Tick(object sender EventArgs e)
        {
            if (!this.bugOccurred)
            {
                GuardianProxy.Activate();
                this.label_heartBeatTime.Text = “最后心跳:“ + DateTime.Now.ToString();
            }
        }

        private void Form1_FormClosing(object sender FormClosingEventArgs e)
        {
            this.timer1.Dispose();
            GuardianProxy.Dispose();
        }

        private void button1_Click(object sender EventArgs e)
        {
            this.button1.Enabled = false;
            this.bugOccurred = true;
            this.label_state.Text = “当前状态:服务停止“;
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件     562600  2016-11-01 13:59  OrayGuard\1.OrayGuard守护者\OrayGuard.exe

     文件        646  2016-10-31 14:46  OrayGuard\1.OrayGuard守护者\OrayGuard.exe.config

     文件     414720  2016-10-27 10:08  OrayGuard\2.SDK\ESBasic.dll

     文件       5632  2016-11-01 11:22  OrayGuard\2.SDK\OrayGuard.Core.dll

     文件       2282  2016-11-01 11:27  OrayGuard\2.SDK\OrayGuard.Core.xml

     文件     414720  2016-10-27 10:08  OrayGuard\TestProcess\SDK\ESBasic.dll

     文件       5632  2016-11-01 11:22  OrayGuard\TestProcess\SDK\OrayGuard.Core.dll

     文件       2282  2016-11-01 11:27  OrayGuard\TestProcess\SDK\OrayGuard.Core.xml

     文件     414720  2016-10-27 10:08  OrayGuard\TestProcess\TestProcess\bin\Debug\ESBasic.dll

     文件       5632  2016-11-01 11:22  OrayGuard\TestProcess\TestProcess\bin\Debug\OrayGuard.Core.dll

     文件       2282  2016-11-01 11:27  OrayGuard\TestProcess\TestProcess\bin\Debug\OrayGuard.Core.xml

     文件       9728  2016-11-01 11:38  OrayGuard\TestProcess\TestProcess\bin\Debug\TestProcess.exe

     文件      26112  2016-11-01 11:38  OrayGuard\TestProcess\TestProcess\bin\Debug\TestProcess.pdb

     文件      11608  2016-11-01 11:46  OrayGuard\TestProcess\TestProcess\bin\Debug\TestProcess.vshost.exe

     文件        490  2010-03-17 22:39  OrayGuard\TestProcess\TestProcess\bin\Debug\TestProcess.vshost.exe.manifest

     文件       1405  2016-11-01 11:38  OrayGuard\TestProcess\TestProcess\Form1.cs

     文件       4607  2016-11-01 11:38  OrayGuard\TestProcess\TestProcess\Form1.Designer.cs

     文件       6011  2016-11-01 11:38  OrayGuard\TestProcess\TestProcess\Form1.resx

     文件       5509  2016-11-01 11:38  OrayGuard\TestProcess\TestProcess\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件       1048  2016-11-01 11:46  OrayGuard\TestProcess\TestProcess\obj\x86\Debug\TestProcess.csproj.FileListAbsolute.txt

     文件        975  2016-11-01 11:38  OrayGuard\TestProcess\TestProcess\obj\x86\Debug\TestProcess.csproj.GenerateResource.Cache

     文件      12898  2016-11-01 11:34  OrayGuard\TestProcess\TestProcess\obj\x86\Debug\TestProcess.csprojResolveAssemblyReference.cache

     文件       9728  2016-11-01 11:38  OrayGuard\TestProcess\TestProcess\obj\x86\Debug\TestProcess.exe

     文件        180  2016-11-01 11:38  OrayGuard\TestProcess\TestProcess\obj\x86\Debug\TestProcess.Form1.resources

     文件      26112  2016-11-01 11:38  OrayGuard\TestProcess\TestProcess\obj\x86\Debug\TestProcess.pdb

     文件        180  2016-11-01 11:34  OrayGuard\TestProcess\TestProcess\obj\x86\Debug\TestProcess.Properties.Resources.resources

     文件        472  2016-11-01 11:24  OrayGuard\TestProcess\TestProcess\Program.cs

     文件       1372  2016-11-01 11:24  OrayGuard\TestProcess\TestProcess\Properties\AssemblyInfo.cs

     文件       2874  2016-11-01 11:24  OrayGuard\TestProcess\TestProcess\Properties\Resources.Designer.cs

     文件       5612  2016-11-01 11:24  OrayGuard\TestProcess\TestProcess\Properties\Resources.resx

............此处省略21个文件信息

评论

共有 条评论