private async Task UploadRequestLogFilesAsync(string requestLogId, CreateRequestLogRequest request, IList <LoggerFile> files) { if (files == null || !files.Any()) { return; } if (string.IsNullOrEmpty(requestLogId)) { return; } IList <File> requestFiles = files.Select(p => new File { FileName = p.FileName, Extension = p.Extension, FullFileName = p.FullFileName, FilePath = p.FilePath }).ToList(); UploadFilesRequest uploadRequest = new UploadFilesRequest { OrganizationId = request.OrganizationId, ApplicationId = request.ApplicationId, RequestLogId = requestLogId, RequestLogClientId = request.ClientId, HttpStatusCode = request.WebRequest?.Response?.HttpStatusCode ?? 500, Files = requestFiles }; await _kissLogApi.UploadRequestLogFilesAsync(uploadRequest).ConfigureAwait(false); }
public async Task <ApiResult <bool> > UploadRequestLogFilesAsync(UploadFilesRequest request) { return(await _v1Api.UploadRequestLogFilesAsync(request).ConfigureAwait(false)); }