private void RefleshRestStateExamination()
 {
     Dictionary<string, string> value = new Dictionary<string, string>();
     value.Add("ActionName", "RefleshRestState");
     var visitor = new Visitor();
     visitor.Parser(value);
 }
 private void Examination()
 {
     Dictionary<string, string> value = new Dictionary<string, string>();
     value.Add("ActionName", "FeelPulse");
     var visitor = new Visitor();
     visitor.Parser(value);
 }
 private void ServerExamination()
 {
     Dictionary<string, string> value = new Dictionary<string, string>();
     value.Add("ActionName", "SendHeartbeat");
     var visitor = new Visitor();
     visitor.Parser(value);
 }
        public void Server_Start()
        {


            try
            {
                Dictionary<string, string> value = new Dictionary<string, string>();
                value.Add("ActionName", "CaptureMsmq");
                var visitor = new Visitor();
                visitor.Parser(value);
                //sandDispatch.Add(new Sand(, "启动wcf服务", 0, (1000 * 4)));
            }
            catch (Exception exception)
            {
                LogUtility.SendError(exception);
            }

            var sandDispatch = SandDispatch.StartTask();
            try
            {
                sandDispatch.Add(new Sand(ServerExamination, "自动检测", 0, (1000 * 60 * 60)));
            }
            catch (Exception exception)
            {
                LogUtility.SendError(exception);
            }
            try
            {
                sandDispatch.Add(new Sand(RefleshRestStateExamination, "自动检测", 0, (1000 * 30)));
            }
            catch (Exception exception)
            {
                LogUtility.SendError(exception);
            }
        }
示例#5
0
 static void Main(string[] args)
 {
     Dictionary<string, string> value = new Dictionary<string, string>();
     var visitor = new Visitor();
     //value.Add("ActionName", "FeelPulse");
     var result = visitor.Parser(value);
     Console.ReadLine();
 }
 // POST: api/Message
 public Cells Post([FromBody]Dictionary<string, string> value)
 {
     LogUtility.SendFatal(value.ToJson());
     var visitor = new Visitor();
     return visitor.Parser(value);
 }
示例#7
0
 public void Entrance(Dictionary<string, string> param)
 {
     var visitor = new Visitor();
     visitor.Parser(param);
 }