Files
xCommons/Models/XLoggerModel.cs
T
saherelm 0a8f9692dd 1.1) حذف XRequestLogger Middleware
- حذف: Modules/xCommons/Middlewares/XRequestLogger.cs (144 خط)
- دلیل: منتقل شده به xLoggingService با بهبوری

1.2) تغییر Extensions
- فایل: XMiddlewareExtensions.cs
- تغییر: حذف متد UseXRequestLogger()
- نتیجه: کلاس اکنون خالی است

1.3) بهبود XLoggerModel
- اضافه: Exception property = null
- تنظیم: ترتیب Properties
2026-11-09 12:49:36 +03:30

30 lines
1.1 KiB
C#

using System;
using Microsoft.AspNetCore.Http;
namespace xCommons.Models {
public class XLoggerModel {
public string Host { get; set; }
public string Path { get; set; }
public string Schema { get; set; }
public string Method { get; set; }
public string UserID { get; set; }
public string Request { get; set; }
public int StatusCode { get; set; }
public bool IsSucceed { get; set; }
public string Response { get; set; }
public string QueryString { get; set; }
public DateTime RequestedOn { get; set; }
public DateTime RespondedOn { get; set; }
public IHeaderDictionary Headers { get; set; }
public Exception Exception { get; set; } = null;
public XLoggerHttpConnection Connection { get; set; }
}
public class XLoggerHttpConnection {
public string Id { get; set; }
public string RemoteIpAddress { get; set; }
public string RemotePort { get; set; }
public string LocalIpAddress { get; set; }
public string LocalPort { get; set; }
}
}