RequestHandler.cs 742 B

12345678910111213141516171819
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using SuperSocket.SocketBase.Protocol;
  6. namespace SuperSocket.SocketBase
  7. {
  8. /// <summary>
  9. /// Request handler
  10. /// </summary>
  11. /// <typeparam name="TAppSession">The type of the app session.</typeparam>
  12. /// <typeparam name="TRequestInfo">The type of the request info.</typeparam>
  13. /// <param name="session">The session.</param>
  14. /// <param name="requestInfo">The request info.</param>
  15. public delegate void RequestHandler<TAppSession, TRequestInfo>(TAppSession session, TRequestInfo requestInfo)
  16. where TAppSession : IAppSession, IAppSession<TAppSession, TRequestInfo>, new()
  17. where TRequestInfo : IRequestInfo;
  18. }