|
|
@ -10,6 +10,7 @@ using System; |
|
|
|
using System.Collections; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Data; |
|
|
|
using System.Data.Entity.Core.Common.CommandTrees.ExpressionBuilder; |
|
|
|
using System.Diagnostics; |
|
|
|
using System.Linq; |
|
|
|
using System.Net; |
|
|
@ -53,6 +54,7 @@ namespace SunlightCentralizedControlManagement_SCCM_.UserClass |
|
|
|
drEmployee["State"] = "801"; |
|
|
|
drEmployee.EndEdit(); |
|
|
|
drEmployee.AcceptChanges(); |
|
|
|
|
|
|
|
LogGing.LogGingDATA("[IP='" + client.IP + "' AND port='" + client.Port + "']=Link_OK"); |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
@ -385,15 +387,8 @@ namespace SunlightCentralizedControlManagement_SCCM_.UserClass |
|
|
|
.SetMinBufferSize(1024*64) |
|
|
|
.SetRemoteIPHost(ip + ":" + port) |
|
|
|
.ConfigurePlugins(a => |
|
|
|
{ |
|
|
|
a.UseCheckClear() |
|
|
|
.SetCheckClearType(CheckClearType.All) |
|
|
|
.SetTick(TimeSpan.FromSeconds(5)) |
|
|
|
.SetOnClose((c, t) => |
|
|
|
{ |
|
|
|
c.TryShutdown(); |
|
|
|
}); |
|
|
|
// a.UseTcpReconnection();//触发型重连
|
|
|
|
{ |
|
|
|
// a.UseTcpReconnection();//触发型重连
|
|
|
|
}) |
|
|
|
.ConfigureContainer(a => |
|
|
|
{ |
|
|
|