FormsAuthenticationEventArgs.cs 869 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /**
  2. * Namespace: System.Web.Security
  3. * Class: FormsAuthenticationEventArgs
  4. *
  5. * Author: Gaurav Vaish
  6. * Maintainer: [email protected]
  7. * Contact: <[email protected]>, <[email protected]>
  8. * Implementation: yes
  9. * Status: 90%
  10. *
  11. * (C) Gaurav Vaish (2002)
  12. */
  13. using System;
  14. using System.Web;
  15. using System.Security.Principal;
  16. namespace System.Web.Security
  17. {
  18. public sealed class FormsAuthenticationEventArgs : EventArgs
  19. {
  20. HttpContext context;
  21. IPrincipal user;
  22. public FormsAuthenticationEventArgs(HttpContext context)
  23. {
  24. this.context = context;
  25. }
  26. public HttpContext Context
  27. {
  28. get
  29. {
  30. return context;
  31. }
  32. }
  33. [MonoTODO]
  34. public IPrincipal User
  35. {
  36. get
  37. {
  38. return user;
  39. }
  40. set
  41. {
  42. // context.User?
  43. throw new NotImplementedException();
  44. }
  45. }
  46. }
  47. }