PassportAuthenticationEventArgs.cs 1013 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /**
  2. * Namespace: System.Web.Security
  3. * Class: PassportAuthenticationEventArgs
  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.Security.Principal;
  15. using System.Web;
  16. namespace System.Web.Security
  17. {
  18. public sealed class PassportAuthenticationEventArgs : EventArgs
  19. {
  20. HttpContext context;
  21. PassportIdentity identity;
  22. IPrincipal user;
  23. public PassportAuthenticationEventArgs(PassportIdentity identity, HttpContext context)
  24. {
  25. this.context = context;
  26. }
  27. public HttpContext Context
  28. {
  29. get
  30. {
  31. return context;
  32. }
  33. }
  34. public PassportIdentity Identity
  35. {
  36. get
  37. {
  38. return identity;
  39. }
  40. }
  41. [MonoTODO]
  42. public IPrincipal User
  43. {
  44. get
  45. {
  46. return user;
  47. }
  48. set
  49. {
  50. throw new NotImplementedException();
  51. }
  52. }
  53. }
  54. }