NetThreadComponent.cs 513 B

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