NotSupportedHandler.cs 455 B

1234567891011121314151617181920212223
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. /// <summary>
  6. /// NotSupportedHandler 的摘要说明
  7. /// </summary>
  8. public class NotSupportedHandler : Handler
  9. {
  10. public NotSupportedHandler(HttpContext context)
  11. : base(context)
  12. {
  13. }
  14. public override void Process()
  15. {
  16. WriteJson(new
  17. {
  18. state = "action 参数为空或者 action 不被支持。"
  19. });
  20. }
  21. }