적용위치,적용장비,천단위구분기호
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user