29 lines
1.0 KiB
C#
29 lines
1.0 KiB
C#
using System;
|
|
using Microsoft.AspNetCore.Http;
|
|
|
|
namespace xCommons.Models {
|
|
public class XLoggerModel {
|
|
public string Schema { get; set; }
|
|
public string Host { get; set; }
|
|
public string Path { get; set; }
|
|
public string Method { get; set; }
|
|
public string UserID { get; set; }
|
|
public string QueryString { get; set; }
|
|
public IHeaderDictionary Headers { get; set; }
|
|
public string Request { get; set; }
|
|
public int StatusCode { get; set; }
|
|
public bool IsSucceed { get; set; }
|
|
public string Response { get; set; }
|
|
public DateTime RequestedOn { get; set; }
|
|
public DateTime RespondedOn { get; set; }
|
|
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; }
|
|
}
|
|
} |