FormsAuthenticationEventArgs.cs 650 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // System.Web.Security.FormsAuthenticationEventArgs
  3. //
  4. // Authors:
  5. // Gonzalo Paniagua Javier ([email protected])
  6. //
  7. // (C) 2002 Ximian, Inc (http://www.ximian.com)
  8. //
  9. using System;
  10. using System.Security.Principal;
  11. using System.Web;
  12. namespace System.Web.Security
  13. {
  14. public sealed class FormsAuthenticationEventArgs : EventArgs
  15. {
  16. IPrincipal user;
  17. HttpContext context;
  18. public FormsAuthenticationEventArgs (HttpContext context)
  19. {
  20. this.context = context;
  21. }
  22. public HttpContext Context
  23. {
  24. get {
  25. return context;
  26. }
  27. }
  28. public IPrincipal User
  29. {
  30. get {
  31. return user;
  32. }
  33. set {
  34. user = value;
  35. }
  36. }
  37. }
  38. }