SubCommandFilterAttribute.cs 665 B

12345678910111213141516171819202122232425
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using SuperSocket.SocketBase;
  7. using SuperSocket.SocketBase.Metadata;
  8. namespace SuperWebSocket.SubProtocol
  9. {
  10. /// <summary>
  11. /// SubCommandFilter Attribute
  12. /// </summary>
  13. [AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
  14. public abstract class SubCommandFilterAttribute : CommandFilterAttribute
  15. {
  16. /// <summary>
  17. /// Gets or sets the sub protocol.
  18. /// </summary>
  19. /// <value>
  20. /// The sub protocol.
  21. /// </value>
  22. public string SubProtocol { get; set; }
  23. }
  24. }