WebEventCodes.cs 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. //
  2. // System.Web.Management.WebEventFormatter.cs
  3. //
  4. // Authors:
  5. // Marek Habersack <[email protected]>
  6. //
  7. // Copyright (C) 2007 Novell, Inc (http://www.novell.com)
  8. //
  9. // Permission is hereby granted, free of charge, to any person obtaining
  10. // a copy of this software and associated documentation files (the
  11. // "Software"), to deal in the Software without restriction, including
  12. // without limitation the rights to use, copy, modify, merge, publish,
  13. // distribute, sublicense, and/or sell copies of the Software, and to
  14. // permit persons to whom the Software is furnished to do so, subject to
  15. // the following conditions:
  16. //
  17. // The above copyright notice and this permission notice shall be
  18. // included in all copies or substantial portions of the Software.
  19. //
  20. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  21. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  22. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  23. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  24. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  25. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  26. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  27. //
  28. //
  29. namespace System.Web.Management
  30. {
  31. public sealed class WebEventCodes
  32. {
  33. public const int InvalidEventCode = -1;
  34. public const int UndefinedEventCode = 0;
  35. public const int UndefinedEventDetailCode = 0;
  36. public const int ApplicationCodeBase = 0x003E8;
  37. public const int ApplicationStart = ApplicationCodeBase + 0x01;
  38. public const int ApplicationShutdown = ApplicationCodeBase + 0x02;
  39. public const int ApplicationCompilationStart = ApplicationCodeBase + 0x03;
  40. public const int ApplicationCompilationEnd = ApplicationCodeBase + 0x04;
  41. public const int ApplicationHeartbeat = ApplicationCodeBase + 0x05;
  42. public const int RequestCodeBase = 0x007D0;
  43. public const int RequestTransactionComplete = RequestCodeBase + 0x01;
  44. public const int RequestTransactionAbort = RequestCodeBase + 0x02;
  45. public const int ErrorCodeBase = 0x00BB8;
  46. public const int RuntimeErrorRequestAbort = ErrorCodeBase + 0x01;
  47. public const int RuntimeErrorViewStateFailure = ErrorCodeBase + 0x02;
  48. public const int RuntimeErrorValidationFailure = ErrorCodeBase + 0x03;
  49. public const int RuntimeErrorPostTooLarge = ErrorCodeBase + 0x04;
  50. public const int RuntimeErrorUnhandledException = ErrorCodeBase + 0x05;
  51. public const int WebErrorParserError = ErrorCodeBase + 0x06;
  52. public const int WebErrorCompilationError = ErrorCodeBase + 0x07;
  53. public const int WebErrorConfigurationError = ErrorCodeBase + 0x08;
  54. public const int WebErrorOtherError = ErrorCodeBase + 0x09;
  55. public const int WebErrorPropertyDeserializationError = ErrorCodeBase + 0x0A;
  56. public const int WebErrorObjectStateFormatterDeserializationError = ErrorCodeBase + 0x0B;
  57. public const int AuditCodeBase = 0x00FA0;
  58. public const int AuditFormsAuthenticationSuccess = AuditCodeBase + 0x01;
  59. public const int AuditMembershipAuthenticationSuccess = AuditCodeBase + 0x02;
  60. public const int AuditUrlAuthorizationSuccess = AuditCodeBase + 0x03;
  61. public const int AuditFileAuthorizationSuccess = AuditCodeBase + 0x04;
  62. public const int AuditFormsAuthenticationFailure = AuditCodeBase + 0x05;
  63. public const int AuditMembershipAuthenticationFailure = AuditCodeBase + 0x06;
  64. public const int AuditUrlAuthorizationFailure = AuditCodeBase + 0x07;
  65. public const int AuditFileAuthorizationFailure = AuditCodeBase + 0x08;
  66. public const int AuditInvalidViewStateFailure = AuditCodeBase + 0x09;
  67. public const int AuditUnhandledSecurityException = AuditCodeBase + 0x0A;
  68. public const int AuditUnhandledAccessException = AuditCodeBase + 0x0B;
  69. public const int MiscCodeBase = 0x01770;
  70. public const int WebEventProviderInformation = MiscCodeBase + 0x01;
  71. public const int ApplicationDetailCodeBase = 0x0C350;
  72. public const int ApplicationShutdownUnknown = ApplicationDetailCodeBase + 0x01;
  73. public const int ApplicationShutdownHostingEnvironment = ApplicationDetailCodeBase + 0x02;
  74. public const int ApplicationShutdownChangeInGlobalAsax = ApplicationDetailCodeBase + 0x03;
  75. public const int ApplicationShutdownConfigurationChange = ApplicationDetailCodeBase + 0x04;
  76. public const int ApplicationShutdownUnloadAppDomainCalled = ApplicationDetailCodeBase + 0x05;
  77. public const int ApplicationShutdownChangeInSecurityPolicyFile = ApplicationDetailCodeBase + 0x06;
  78. public const int ApplicationShutdownBinDirChangeOrDirectoryRename = ApplicationDetailCodeBase + 0x07;
  79. public const int ApplicationShutdownBrowsersDirChangeOrDirectoryRename = ApplicationDetailCodeBase + 0x08;
  80. public const int ApplicationShutdownCodeDirChangeOrDirectoryRename = ApplicationDetailCodeBase + 0x09;
  81. public const int ApplicationShutdownResourcesDirChangeOrDirectoryRename = ApplicationDetailCodeBase + 0x0A;
  82. public const int ApplicationShutdownIdleTimeout = ApplicationDetailCodeBase + 0x0B;
  83. public const int ApplicationShutdownPhysicalApplicationPathChanged = ApplicationDetailCodeBase + 0x0C;
  84. public const int ApplicationShutdownHttpRuntimeClose = ApplicationDetailCodeBase + 0x0D;
  85. public const int ApplicationShutdownInitializationError = ApplicationDetailCodeBase + 0x0E;
  86. public const int ApplicationShutdownMaxRecompilationsReached = ApplicationDetailCodeBase + 0x0F;
  87. public const int StateServerConnectionError = ApplicationDetailCodeBase + 0x10;
  88. public const int AuditDetailCodeBase = 0x0C418;
  89. public const int InvalidTicketFailure = AuditDetailCodeBase + 0x01;
  90. public const int ExpiredTicketFailure = AuditDetailCodeBase + 0x02;
  91. public const int InvalidViewStateMac = AuditDetailCodeBase + 0x03;
  92. public const int InvalidViewState = AuditDetailCodeBase + 0x04;
  93. public const int WebEventDetailCodeBase = 0x0C47C;
  94. public const int SqlProviderEventsDropped = WebEventDetailCodeBase + 0x01;
  95. public const int WebExtendedBase = 0x186A0;
  96. }
  97. }