You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

24 lines
736 B

namespace DealerSelection.Common.Logging;
public class ApiInfo
{
public RequestInfo RequestInfo { get; set; }
//public CustomInfo CustomInfo { get; set; }
public ResponseInfo ResponseInfo { get; set; }
public ApiInfo(string httpMethod, string uriAccessed, string hostName, DateTime startDate)
{
RequestInfo = new RequestInfo(hostName, httpMethod, uriAccessed, startDate);
}
public override string ToString()
{
return $"WebAPI {nameof(RequestInfo)}: {RequestInfo}, " +
//$"{nameof(CustomInfo)}: {CustomInfo}, " +
$"{nameof(ResponseInfo)}: {ResponseInfo}";
}
public bool IsValid()
{
return RequestInfo.BuId.GetValueOrDefault() > 0;
}
}