using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Threading; namespace ET { public class NetThreadComponent: Entity { public static NetThreadComponent Instance; public const int checkInteral = 2000; public const int recvMaxIdleTime = 60000; public const int sendMaxIdleTime = 60000; #if NET_THREAD public Thread Thread; #endif public ThreadSynchronizationContext ThreadSynchronizationContext; public HashSet Services = new HashSet(); #if NET_THREAD public bool isRun; #endif public Random Random = new Random(Guid.NewGuid().GetHashCode()); } }