NetThreadComponent.cs 546 B

123456789101112131415161718
  1. using System.Collections.Generic;
  2. namespace ET
  3. {
  4. [ComponentOf(typeof(Scene))]
  5. public class NetThreadComponent: Entity, IAwake, ILateUpdate, IDestroy
  6. {
  7. public static NetThreadComponent Instance;
  8. public const int checkInteral = 2000;
  9. public const int recvMaxIdleTime = 60000;
  10. public const int sendMaxIdleTime = 60000;
  11. public ThreadSynchronizationContext ThreadSynchronizationContext { get; set; }
  12. public HashSet<AService> Services = new HashSet<AService>();
  13. }
  14. }