예제 #1
0
 public void UpdateInterfaceRealtimeInfoService(string interfaceName, string applicationName, string server, int stateCode)
 {
     try
     {
         Log4netInit();
         GetDataBaseConfig();
         InterfaceRealtimeBizProcess.UpdateInterfaceRealtimeInfo(interfaceName, applicationName, server, stateCode);
         log.Info(string.Format("UpdateInterfaceRealtimeInfoService({0},{1},{2},{3})调用成功!", interfaceName, applicationName, server, stateCode));
     }
     catch (Exception ex)
     {
         log.Error(string.Format("UpdateInterfaceRealtimeInfoService({0},{1},{2},{3})调用异常,异常信息如下:{4}", interfaceName, applicationName, server, stateCode, ex));
     }
 }
예제 #2
0
 private void button16_Click(object sender, EventArgs e)
 {
     InterfaceRealtimeBizProcess.UpdateInterfaceRealtimeInfo("InterfaceMonitor.Frameworks.Dal.InterfaceConfigInfoDal", "测试接口2", "192.168.1.80", 100);
     InterfaceRealtimeBizProcess.UpdateInterfaceRealtimeInfoWithException("InterfaceMonitor.Frameworks.Dal.InterfaceConfigInfoDal", "测试接口2", "192.168.1.80", 80, "InterfaceMonitor.Frameworks.Dal.InterfaceConfigInfoDal尝试连接失败,请重试!");
 }