ISessionContext.cs 520 B

12345678910111213141516171819
  1. using XGame.Framework.Time;
  2. namespace XGame.Framework.Network
  3. {
  4. /// <summary>
  5. /// 网络会话的上下文
  6. /// </summary>
  7. internal interface ISessionContext
  8. {
  9. ITimeModule Time { get; }
  10. IRemoteSession Session { get; }
  11. IMsgEncryptor Encryptor { get; }
  12. IMsgCompressor Compressor { get; }
  13. IMsgGenerator Generator { get; }
  14. IMsgProcesser Processer { get; }
  15. IFrameSynchronizer Synchronizer { get; }
  16. ISerializer Serializer { get; }
  17. }
  18. }