적용위치,적용장비,천단위구분기호

This commit is contained in:
chikyun.kim
2018-12-22 20:54:23 +09:00
parent 560f7d78bf
commit 2344760210
19 changed files with 1291 additions and 419 deletions

View File

@@ -11,6 +11,7 @@ namespace Project
{
public partial class fMain
{
DateTime redisTryTime = DateTime.Parse("1982-11-23");
Boolean bBW = true;
private void bw_DoWork(object sender, DoWorkEventArgs e)
{
@@ -18,8 +19,18 @@ namespace Project
{
if(redisConnection == null)
{
Console.WriteLine("redis conn : 10.131.36.205:6379");
redisConnection = StackExchange.Redis.ConnectionMultiplexer.Connect("10.131.36.205:6379");
var ts = DateTime.Now - redisTryTime;
if(ts.TotalMinutes>5)
{
Console.WriteLine("redis conn : 10.131.36.205:6379");
try
{
redisConnection = StackExchange.Redis.ConnectionMultiplexer.Connect("10.131.36.205:6379");
}catch (Exception ex)
{
}
}
}
else
{