public void CallWeaveTCPCommandClassUpdateSocketEvent(Socket soc) { try { int count = weaveTCPCommandItems.Count; WeaveTCPCommandItem[] commandlist = new WeaveTCPCommandItem[count]; weaveTCPCommandItems.CopyTo(0, commandlist, 0, count); foreach (WeaveTCPCommandItem weaveTCPCommandItem in commandlist) { try { weaveTCPCommandItem.WeaveTcpCmd.WeaveUpdateSocketEvent(soc); } catch (Exception ex) { if (WeaveLogEvent != null) { WeaveLogEvent("EventUpdataConnSoc", ex.Message); } } } } catch { } }
public void AddCmdWorkItems(WeaveTCPCommand cmd) { cmd.SetGlobalQueueTable(weaveTable, TcpToken); WeaveTCPCommandItem cmdItem = new WeaveTCPCommandItem(); // Ic.SetGlobalQueueTable(weaveTable, TcpTokenList); cmdItem.WeaveTcpCmd = cmd; cmdItem.CmdName = cmd.Getcommand(); GetAttributeInfo(cmd, cmd.GetType(), cmd); weaveTCPCommandItems.Add(cmdItem); }