ISubCommand.cs 830 B

12345678910111213141516171819202122232425
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using SuperSocket.SocketBase;
  6. using SuperSocket.SocketBase.Command;
  7. using SuperSocket.SocketBase.Protocol;
  8. namespace SuperWebSocket.SubProtocol
  9. {
  10. /// <summary>
  11. /// SubCommand interface
  12. /// </summary>
  13. /// <typeparam name="TWebSocketSession">The type of the web socket session.</typeparam>
  14. public interface ISubCommand<TWebSocketSession> : ICommand
  15. where TWebSocketSession : WebSocketSession<TWebSocketSession>, new()
  16. {
  17. /// <summary>
  18. /// Executes the command.
  19. /// </summary>
  20. /// <param name="session">The session.</param>
  21. /// <param name="requestInfo">The request info.</param>
  22. void ExecuteCommand(TWebSocketSession session, SubRequestInfo requestInfo);
  23. }
  24. }