Log.cs 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. using MTWorkHR.Core.Entities.Base;
  2. using System;
  3. namespace MTWorkHR.Core.Entities
  4. {
  5. public class Log:Entity
  6. {
  7. public Log()
  8. {
  9. }
  10. public Log(string Method
  11. , string QueryString
  12. , string Input
  13. , DateTime CreateDate
  14. , string CreateUser
  15. , string ServerIP
  16. , string Channel
  17. , string UserIP
  18. , string ServiceResponseTimeInSeconds
  19. , string ErrorCode
  20. , string ErrorDescription
  21. , string InnerException)
  22. {
  23. this.Method = Method;
  24. this.QueryString = QueryString;
  25. this.Input = Input;
  26. this.CreateDate = CreateDate;
  27. this.CreateUser = CreateUser;
  28. this.ServerIP = ServerIP;
  29. this.Channel = Channel;
  30. this.UserIP = UserIP;
  31. this.ServiceResponseTimeInSeconds = ServiceResponseTimeInSeconds;
  32. this.ErrorCode = ErrorCode;
  33. this.ErrorDescription = ErrorDescription;
  34. this.InnerException = InnerException;
  35. }
  36. public Log(string Method
  37. , string QueryString
  38. , string Input
  39. , DateTime CreateDate
  40. , string CreateUser
  41. , string ServerIP
  42. , string Channel
  43. , string UserIP
  44. , string ServiceResponseTimeInSeconds
  45. , string ErrorCode
  46. , string ErrorDescription
  47. , string InnerException
  48. ,string userAgent)
  49. {
  50. this.Method = Method;
  51. this.QueryString = QueryString;
  52. this.Input = Input;
  53. this.CreateDate = CreateDate;
  54. this.CreateUser = CreateUser;
  55. this.ServerIP = ServerIP;
  56. this.Channel = Channel;
  57. this.UserIP = UserIP;
  58. this.ServiceResponseTimeInSeconds = ServiceResponseTimeInSeconds;
  59. this.ErrorCode = ErrorCode;
  60. this.ErrorDescription = ErrorDescription;
  61. this.InnerException = InnerException;
  62. this.userAgent = userAgent;
  63. }
  64. public string Method { get; set; }
  65. public string? QueryString { get; set; }
  66. public string? Input { get; set; }
  67. public DateTime CreateDate { get; set; }
  68. public string CreateUser { get; set; }
  69. public string? ServerIP { get; set; }
  70. public string? Channel { get; set; }
  71. public string? UserIP { get; set; }
  72. public string ServiceResponseTimeInSeconds { get; set; }
  73. public string ErrorCode { get; set; }
  74. public string ErrorDescription { get; set; }
  75. public string? InnerException { get; set; }
  76. public string? userAgent { get; set; }
  77. }
  78. }