Class ApiRequestLogger
- Namespace
- InSite.Persistence.Integration
- Assembly
- InSite.Persistence.dll
public class ApiRequestLogger : IApiRequestLogger
- Inheritance
-
ApiRequestLogger
- Implements
-
- Inherited Members
-
Constructors
ApiRequestLogger(Action<string, string>)
public ApiRequestLogger(Action<string, string> error)
Parameters
error Action<string, string>
Methods
Error(string, string)
public void Error(string error, string source)
Parameters
error string
source string
public Guid Insert(Guid? userIdentifier, Guid? organizationIdentifier, HttpRequestHeaders headers, string requestMethod, string requestUrl, string content)
Parameters
userIdentifier Guid?
organizationIdentifier Guid?
headers HttpRequestHeaders
requestMethod string
requestUrl string
content string
Returns
- Guid
Insert(Guid?, Guid?, HttpWebRequest, string)
public Guid Insert(Guid? userIdentifier, Guid? organizationIdentifier, HttpWebRequest request, string content)
Parameters
userIdentifier Guid?
organizationIdentifier Guid?
request HttpWebRequest
content string
Returns
- Guid
InsertAsync(ApiDeveloper, Guid?, HttpRequestMessage, string, string, string, Guid?)
public Task<Guid> InsertAsync(ApiDeveloper developer, Guid? organization, HttpRequestMessage request, string direction, string status, string ipAddress, Guid? responseLogId)
Parameters
developer ApiDeveloper
organization Guid?
request HttpRequestMessage
direction string
status string
ipAddress string
responseLogId Guid?
Returns
- Task<Guid>
Update(Guid, IntegrationResponse)
public void Update(Guid requestKey, IntegrationResponse response)
Parameters
requestKey Guid
response IntegrationResponse
Update(Guid, string, Exception)
public void Update(Guid requestKey, string destination, Exception ex)
Parameters
requestKey Guid
destination string
ex Exception