Exemplo n.º 1
0
 private void LogCallStarted(string url, string marker, string callerMethodName, HttpMethodEnum httpMethod = HttpMethodEnum.Get, string body = null)
 {
     BigCommerceLogger.TraceLog(new RequestInfo()
     {
         Mark             = marker,
         Url              = url,
         LibMethodName    = callerMethodName,
         Category         = MessageCategoryEnum.Information,
         HttpMethod       = httpMethod,
         Body             = body,
         TenantId         = this._config.TenantId,
         ChannelAccountId = this._config.ChannelAccountId
     });
 }
Exemplo n.º 2
0
 private void LogCallEnded(string url, string marker, string callerMethodName, string statusCode, string response, string remainingCalls, string systemVersion)
 {
     BigCommerceLogger.TraceLog(new ResponseInfo()
     {
         Mark             = marker,
         Url              = url,
         LibMethodName    = callerMethodName,
         Category         = MessageCategoryEnum.Information,
         Response         = response,
         StatusCode       = statusCode,
         RemainingCalls   = remainingCalls,
         SystemVersion    = systemVersion,
         TenantId         = this._config.TenantId,
         ChannelAccountId = this._config.ChannelAccountId
     });
 }