From 43565440314a75f256e1b0d2f360066067f2985e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?ZR20090193-=E9=99=88=E6=95=AC=E5=8B=87?= Date: Thu, 13 Jun 2024 19:53:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E4=BB=B6=E4=B8=8B=E8=BD=BD=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MultiLanguageMiddleware.cs | 3 +- .../DS.WMS.Core/Op/Dtos/OpFileDownLoadRes.cs | 3 + .../Op/Interface/IOpFileService.cs | 2 +- .../DS.WMS.Core/Op/Method/OpFileService.cs | 30 +- .../Controllers/OpFileController.cs | 50 ++- .../DS.WMS.MainApi/Logs/internal-nlog.txt | 338 ++++++++++++++++++ .../PublishProfiles/FolderProfile.pubxml.user | 2 +- .../LinkAttach/1800846562843299840.txt | 1 + ds-wms-service/DS.WMS.Test/OpTest.cs | 41 +++ ds-wms-service/DS.WMS.Test/Startup.cs | 3 +- 10 files changed, 441 insertions(+), 32 deletions(-) create mode 100644 ds-wms-service/DS.WMS.MainApi/wwwroot/LinkAttach/1800846562843299840.txt diff --git a/ds-wms-service/DS.Module.MultiLanguage/MultiLanguageMiddleware.cs b/ds-wms-service/DS.Module.MultiLanguage/MultiLanguageMiddleware.cs index 413dbfea..df79b28b 100644 --- a/ds-wms-service/DS.Module.MultiLanguage/MultiLanguageMiddleware.cs +++ b/ds-wms-service/DS.Module.MultiLanguage/MultiLanguageMiddleware.cs @@ -45,6 +45,7 @@ public class MultiLanguageMiddleware context.Request.Path.Value.IndexOf("SignalR", StringComparison.InvariantCultureIgnoreCase) > -1 || context.Request.Path.Value.IndexOf("swagger", StringComparison.InvariantCultureIgnoreCase) > -1 || context.Request.Path.Value.IndexOf("HealthCheck", StringComparison.InvariantCultureIgnoreCase) > -1 + || context.Request.Path.Value.IndexOf("DownloadOpFileInfo", StringComparison.InvariantCultureIgnoreCase) > -1 ) ) { @@ -54,7 +55,7 @@ public class MultiLanguageMiddleware { var api = context.Request.Path.ObjToString().TrimEnd('/').ToLower(); // 过滤,只有接口 - if (api.Contains("api")) + if (api.Contains("api")&& !api.Contains("downloadopfileinfo")) { _stopwatch.Restart(); diff --git a/ds-wms-service/DS.WMS.Core/Op/Dtos/OpFileDownLoadRes.cs b/ds-wms-service/DS.WMS.Core/Op/Dtos/OpFileDownLoadRes.cs index ff5dc237..785aafb1 100644 --- a/ds-wms-service/DS.WMS.Core/Op/Dtos/OpFileDownLoadRes.cs +++ b/ds-wms-service/DS.WMS.Core/Op/Dtos/OpFileDownLoadRes.cs @@ -10,5 +10,8 @@ namespace DS.WMS.Core.Op.Dtos { public string FileName { get; set; } public string FilePath { get; set; } + + public FileStream FileStream { get; set; } + } } diff --git a/ds-wms-service/DS.WMS.Core/Op/Interface/IOpFileService.cs b/ds-wms-service/DS.WMS.Core/Op/Interface/IOpFileService.cs index 8b4b03ff..a9b337b6 100644 --- a/ds-wms-service/DS.WMS.Core/Op/Interface/IOpFileService.cs +++ b/ds-wms-service/DS.WMS.Core/Op/Interface/IOpFileService.cs @@ -54,6 +54,6 @@ namespace DS.WMS.Core.Op.Interface /// /// /// - public Task> GetOpFileDownLoad(string id); + public DataResult GetOpFileDownLoad(string id); } } diff --git a/ds-wms-service/DS.WMS.Core/Op/Method/OpFileService.cs b/ds-wms-service/DS.WMS.Core/Op/Method/OpFileService.cs index 688cacf0..437f12de 100644 --- a/ds-wms-service/DS.WMS.Core/Op/Method/OpFileService.cs +++ b/ds-wms-service/DS.WMS.Core/Op/Method/OpFileService.cs @@ -10,6 +10,8 @@ using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.DependencyInjection; +using NPOI.HPSF; +using SharpCompress.Common; using SqlSugar; using System; using System.Collections.Generic; @@ -258,8 +260,14 @@ namespace DS.WMS.Core.Op.Method //var fileName = HttpUtility.UrlEncode(opFile.FileName, Encoding.GetEncoding("UTF-8")); var fileName = opFile.FileName; - var result = new FileStreamResult(new FileStream(fileFullPath, FileMode.Open), "application/octet-stream") { FileDownloadName = fileName }; - return result; + //var result = new FileStreamResult(new FileStream(fileFullPath, FileMode.Open), "application/octet-stream") { FileDownloadName = fileName }; + //return result; + byte[] byteArr = System.IO.File.ReadAllBytes(fileFullPath); + string mimeType = "application/octet-stream"; + return new FileContentResult(byteArr, mimeType) + { + FileDownloadName = fileName + }; } /// @@ -267,13 +275,13 @@ namespace DS.WMS.Core.Op.Method /// /// /// - public async Task> GetOpFileDownLoad(string id) + public DataResult GetOpFileDownLoad(string id) { var tenantDb = saasService.GetBizDbScopeById(user.TenantId); - var opFile = await tenantDb.Queryable().FirstAsync(u => u.Id == long.Parse(id)); + var opFile = tenantDb.Queryable().First(u => u.Id == long.Parse(id)); if (opFile == null) { - return await Task.FromResult(DataResult.Failed("文件信息不存在")); + return DataResult.Failed("文件信息不存在"); } var basePath = AppSetting.app(new string[] { "FileSettings", "BasePath" }); @@ -292,18 +300,22 @@ namespace DS.WMS.Core.Op.Method var fileFullPath = Path.Combine(dirAbs, opFile.FilePath); if (!File.Exists(fileFullPath)) { - return await Task.FromResult(DataResult.Failed("文件信息路径不存在")); + return DataResult.Failed("文件信息路径不存在"); } - + //var fileName = HttpUtility.UrlEncode(opFile.FileName, Encoding.GetEncoding("UTF-8")); + var temp = File.ReadAllBytes(fileFullPath); + var data = new OpFileDownLoadRes() { FileName = opFile.FileName, - FilePath = fileFullPath, + FilePath = fileFullPath, + //FileStream = File.ReadAllBytes(fileFullPath) + //FileStream = new FileStream(fileFullPath, FileMode.Open) }; - return await Task.FromResult(DataResult.Success(data)); + return DataResult.Success(data); } } } diff --git a/ds-wms-service/DS.WMS.MainApi/Controllers/OpFileController.cs b/ds-wms-service/DS.WMS.MainApi/Controllers/OpFileController.cs index 5874019c..626e8a68 100644 --- a/ds-wms-service/DS.WMS.MainApi/Controllers/OpFileController.cs +++ b/ds-wms-service/DS.WMS.MainApi/Controllers/OpFileController.cs @@ -6,7 +6,12 @@ using DS.WMS.Core.Op.Entity; using DS.WMS.Core.Op.Interface; using DS.WMS.Core.Sys.Dtos; using DS.WMS.Core.Sys.Interface; +using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; +using NPOI.HPSF; +using SharpCompress.Common; +using SixLabors.ImageSharp.Drawing; +using System.IO; using System.Text; using System.Web; @@ -80,18 +85,18 @@ public class OpFileController : ApiController return await res; } - /// - /// 下载业务附件 - /// - /// 附件id - /// - [HttpGet] - [Route("DownloadOpFile")] - public async Task DownloadOpFile([FromQuery] string id) - { - var res = await _invokeService.DownloadFile(id); - return res; - } + ///// + ///// 下载业务附件 + ///// + ///// 附件id + ///// + //[HttpGet] + //[Route("DownloadOpFile")] + //public async Task DownloadOpFile([FromQuery] string id) + //{ + // var res = await _invokeService.DownloadFile(id); + // return res; + //} /// /// 下载业务附件 @@ -100,15 +105,22 @@ public class OpFileController : ApiController /// [HttpGet] [Route("DownloadOpFileInfo")] + [ProducesResponseType(typeof(FileResult), StatusCodes.Status200OK)] + //[AllowAnonymous] public async Task DownloadOpFileInfo([FromQuery] string id) { - var res = await _invokeService.GetOpFileDownLoad(id); - var fileName = HttpUtility.UrlEncode(res.Data.FileName, Encoding.GetEncoding("UTF-8")); - //var result = new FileStreamResult(new FileStream(res.Data.FilePath, FileMode.Open), "application/octet-stream") { FileDownloadName = fileName }; - //return result; + var res = _invokeService.GetOpFileDownLoad(id); + //var fileName = HttpUtility.UrlEncode(res.Data.FileName, Encoding.GetEncoding("UTF-8")); + var path = res.Data.FilePath; + var fileName = res.Data.FileName; + + byte[] byteArr = System.IO.File.ReadAllBytes(res.Data.FilePath); + string mimeType = "application/octet-stream"; + return new FileContentResult(byteArr, mimeType) + { + FileDownloadName = fileName + }; - //this.HttpContext.Response.Headers.Add("Content-Length", result.Length.ToString()); - this.HttpContext.Response.Headers.Add("Content-Type", "charset=UTF-8"); - return File(new FileStream(res.Data.FilePath, FileMode.Open), "application/octet-stream;charset=UTF-8", res.Data.FileName); } + } \ No newline at end of file diff --git a/ds-wms-service/DS.WMS.MainApi/Logs/internal-nlog.txt b/ds-wms-service/DS.WMS.MainApi/Logs/internal-nlog.txt index 51488168..5db78704 100644 --- a/ds-wms-service/DS.WMS.MainApi/Logs/internal-nlog.txt +++ b/ds-wms-service/DS.WMS.MainApi/Logs/internal-nlog.txt @@ -1835,3 +1835,341 @@ 2024-06-13 15:06:40.2021 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config 2024-06-13 15:06:40.2021 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile 2024-06-13 15:06:40.2275 Info Configuration initialized. +2024-06-13 15:30:49.3590 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-13 15:30:49.3905 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-13 15:30:49.3905 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-13 15:30:49.4156 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-13 15:30:49.4277 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config +2024-06-13 15:30:49.4277 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-13 15:30:49.4488 Info Configuration initialized. +2024-06-13 15:36:54.3214 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-13 15:36:54.3675 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-13 15:36:54.3859 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-13 15:36:54.4273 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-13 15:36:54.4538 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config +2024-06-13 15:36:54.4704 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-13 15:36:54.4942 Info Configuration initialized. +2024-06-13 15:39:01.4235 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-13 15:39:01.5047 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-13 15:39:01.5280 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-13 15:39:01.6099 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-13 15:39:01.6459 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config +2024-06-13 15:39:01.6658 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-13 15:39:01.7002 Info Configuration initialized. +2024-06-13 15:40:55.5915 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-13 15:40:55.6502 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-13 15:40:55.6731 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-13 15:40:55.7344 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-13 15:40:55.7667 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config +2024-06-13 15:40:55.7879 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-13 15:40:55.8233 Info Configuration initialized. +2024-06-13 16:05:27.9690 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-13 16:05:27.9907 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-13 16:05:27.9992 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-13 16:05:28.0179 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-13 16:05:28.0358 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config +2024-06-13 16:05:28.0467 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-13 16:05:28.0467 Info Configuration initialized. +2024-06-13 16:08:43.5818 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-13 16:08:43.6207 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-13 16:08:43.6307 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-13 16:08:43.6545 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-13 16:08:43.6799 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config +2024-06-13 16:08:43.6883 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-13 16:08:43.7095 Info Configuration initialized. +2024-06-13 16:12:29.0180 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-13 16:12:29.0475 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-13 16:12:29.0618 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-13 16:12:29.0899 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-13 16:12:29.1079 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config +2024-06-13 16:12:29.1150 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-13 16:12:29.1277 Info Configuration initialized. +2024-06-13 16:20:39.0942 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-13 16:20:39.1201 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-13 16:20:39.1276 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-13 16:20:39.1445 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-13 16:20:39.1592 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config +2024-06-13 16:20:39.1592 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-13 16:20:39.1800 Info Configuration initialized. +2024-06-13 16:26:14.9229 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-13 16:26:14.9402 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-13 16:26:14.9402 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-13 16:26:14.9618 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-13 16:26:14.9720 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config +2024-06-13 16:26:14.9720 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-13 16:26:14.9890 Info Configuration initialized. +2024-06-13 16:30:04.7247 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-13 16:30:04.7610 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-13 16:30:04.7744 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-13 16:30:04.8055 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-13 16:30:04.8251 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config +2024-06-13 16:30:04.8346 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-13 16:30:04.8558 Info Configuration initialized. +2024-06-13 16:33:54.6092 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-13 16:33:54.6347 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-13 16:33:54.6434 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-13 16:33:54.6628 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-13 16:33:54.6789 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config +2024-06-13 16:33:54.6898 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-13 16:33:54.7080 Info Configuration initialized. +2024-06-13 16:42:44.4570 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-13 16:42:44.5113 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-13 16:42:44.5299 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-13 16:42:44.5735 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-13 16:42:44.6067 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config +2024-06-13 16:42:44.6244 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-13 16:42:44.6528 Info Configuration initialized. +2024-06-13 16:46:36.5356 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-13 16:46:36.5548 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-13 16:46:36.5659 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-13 16:46:36.5860 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-13 16:46:36.6004 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config +2024-06-13 16:46:36.6004 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-13 16:46:36.6203 Info Configuration initialized. +2024-06-13 16:52:14.3942 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-13 16:52:14.4215 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-13 16:52:14.4215 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-13 16:52:14.4491 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-13 16:52:14.4695 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config +2024-06-13 16:52:14.4695 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-13 16:52:14.4982 Info Configuration initialized. +2024-06-13 16:57:39.8525 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-13 16:57:39.8838 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-13 16:57:39.8952 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-13 16:57:39.9231 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-13 16:57:39.9494 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config +2024-06-13 16:57:39.9626 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-13 16:57:39.9865 Info Configuration initialized. +2024-06-13 17:05:55.2719 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-13 17:05:55.2960 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-13 17:05:55.2960 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-13 17:05:55.3221 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-13 17:05:55.3432 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config +2024-06-13 17:05:55.3538 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-13 17:05:55.3753 Info Configuration initialized. +2024-06-13 17:08:28.9578 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-13 17:08:28.9782 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-13 17:08:28.9857 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-13 17:08:29.0074 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-13 17:08:29.0219 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config +2024-06-13 17:08:29.0219 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-13 17:08:29.0443 Info Configuration initialized. +2024-06-13 17:13:48.3733 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-13 17:13:48.4156 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-13 17:13:48.4317 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-13 17:13:48.4680 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-13 17:13:48.4924 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config +2024-06-13 17:13:48.5037 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-13 17:13:48.5250 Info Configuration initialized. +2024-06-13 17:19:19.7701 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-13 17:19:19.8057 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-13 17:19:19.8196 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-13 17:19:19.8478 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-13 17:19:19.8648 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config +2024-06-13 17:19:19.8648 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-13 17:19:19.8860 Info Configuration initialized. +2024-06-13 17:20:37.9925 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-13 17:20:38.0291 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-13 17:20:38.0424 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-13 17:20:38.0692 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-13 17:20:38.1008 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config +2024-06-13 17:20:38.1123 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-13 17:20:38.1346 Info Configuration initialized. +2024-06-13 17:24:47.9705 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-13 17:24:48.0369 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-13 17:24:48.0576 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-13 17:24:48.0962 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-13 17:24:48.1154 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config +2024-06-13 17:24:48.1301 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-13 17:24:48.1577 Info Configuration initialized. +2024-06-13 17:28:11.5220 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-13 17:28:11.5705 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-13 17:28:11.6005 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-13 17:28:11.6496 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-13 17:28:11.6781 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config +2024-06-13 17:28:11.6949 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-13 17:28:11.7251 Info Configuration initialized. +2024-06-13 17:30:06.0853 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-13 17:30:06.1279 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-13 17:30:06.1279 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-13 17:30:06.3621 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-13 17:30:06.3981 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config +2024-06-13 17:30:06.4204 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-13 17:30:06.4578 Info Configuration initialized. +2024-06-13 17:34:03.0870 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-13 17:34:03.1332 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-13 17:34:03.1444 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-13 17:34:03.1900 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-13 17:34:03.2242 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config +2024-06-13 17:34:03.2488 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-13 17:34:03.2839 Info Configuration initialized. +2024-06-13 17:38:17.0203 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-13 17:38:17.0748 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-13 17:38:17.0915 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-13 17:38:17.1319 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-13 17:38:17.1600 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config +2024-06-13 17:38:17.1771 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-13 17:38:17.1998 Info Configuration initialized. +2024-06-13 17:48:25.6495 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-13 17:48:25.6957 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-13 17:48:25.7140 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-13 17:48:25.7489 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-13 17:48:25.7744 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config +2024-06-13 17:48:25.7875 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-13 17:48:25.8121 Info Configuration initialized. +2024-06-13 17:56:58.3755 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-13 17:56:58.4299 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-13 18:08:24.9310 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-13 18:08:24.9721 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-13 18:08:24.9856 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-13 18:08:25.0177 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-13 18:08:25.0378 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config +2024-06-13 18:08:25.0462 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-13 18:08:25.0642 Info Configuration initialized. +2024-06-13 18:09:54.8732 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-13 18:09:54.9303 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-13 18:09:54.9503 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-13 18:09:54.9979 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-13 18:09:55.0272 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config +2024-06-13 18:09:55.0419 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-13 18:09:55.0621 Info Configuration initialized. +2024-06-13 18:13:29.0971 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-13 18:13:29.1227 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-13 18:13:29.1331 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-13 18:13:29.1558 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-13 18:13:29.1734 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config +2024-06-13 18:13:29.1734 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-13 18:13:29.1932 Info Configuration initialized. +2024-06-13 18:24:24.1455 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-13 18:24:24.1771 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-13 18:24:24.1771 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-13 18:24:24.2071 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-13 18:24:24.2225 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config +2024-06-13 18:24:24.2225 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-13 18:24:24.2460 Info Configuration initialized. +2024-06-13 18:28:20.7220 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-13 18:28:20.7537 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-13 18:28:20.7537 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-13 18:28:20.7833 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-13 18:28:20.8019 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config +2024-06-13 18:28:20.8019 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-13 18:28:20.8262 Info Configuration initialized. +2024-06-13 18:29:48.9640 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-13 18:29:49.0101 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-13 18:29:49.0250 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-13 18:29:49.0626 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-13 18:29:49.0937 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config +2024-06-13 18:29:49.0937 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-13 18:29:49.1280 Info Configuration initialized. +2024-06-13 18:35:42.4541 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-13 18:35:42.5053 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-13 18:35:42.5288 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-13 18:35:42.5747 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-13 18:35:42.6047 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config +2024-06-13 18:35:42.6241 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-13 18:35:42.6543 Info Configuration initialized. +2024-06-13 18:40:33.8341 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-13 18:40:33.8718 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-13 18:40:33.8847 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-13 18:40:33.9229 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-13 18:40:33.9450 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config +2024-06-13 18:40:33.9604 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-13 18:40:33.9848 Info Configuration initialized. +2024-06-13 18:43:37.3834 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-13 18:43:37.4115 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-13 18:43:37.4115 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-13 18:43:37.4449 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-13 18:43:37.4670 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config +2024-06-13 18:43:37.4799 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-13 18:43:37.5046 Info Configuration initialized. +2024-06-13 18:51:57.4731 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-13 18:51:57.5122 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-13 18:51:57.5222 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-13 18:51:57.5434 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-13 18:51:57.5604 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config +2024-06-13 18:51:57.5681 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-13 18:51:57.5801 Info Configuration initialized. +2024-06-13 19:07:34.1635 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-13 19:07:34.2163 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-13 19:07:34.2331 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-13 19:07:34.2682 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-13 19:07:34.2960 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config +2024-06-13 19:07:34.2960 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-13 19:07:34.3391 Info Configuration initialized. +2024-06-13 19:16:53.2992 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-13 19:16:53.3341 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-13 19:16:53.3479 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-13 19:16:53.3779 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-13 19:16:53.3960 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config +2024-06-13 19:16:53.3960 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-13 19:16:53.4164 Info Configuration initialized. +2024-06-13 19:21:52.4121 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-13 19:21:52.4568 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-13 19:21:52.4882 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-13 19:21:52.5340 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-13 19:21:52.5673 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config +2024-06-13 19:21:52.5997 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-13 19:21:52.6399 Info Configuration initialized. +2024-06-13 19:26:58.4265 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-13 19:26:58.4817 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-13 19:26:58.5078 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-13 19:26:58.5555 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-13 19:26:58.5909 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config +2024-06-13 19:26:58.6011 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-13 19:26:58.6252 Info Configuration initialized. +2024-06-13 19:32:43.7196 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-13 19:32:43.7709 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-13 19:32:43.7923 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-13 19:32:43.8370 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-13 19:32:43.8668 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config +2024-06-13 19:32:43.8828 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-13 19:32:43.9118 Info Configuration initialized. +2024-06-13 19:34:38.4608 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-13 19:34:38.5532 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-13 19:34:38.5785 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-13 19:34:38.6455 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-13 19:34:38.6914 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config +2024-06-13 19:34:38.7093 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-13 19:34:38.7535 Info Configuration initialized. +2024-06-13 19:36:57.2217 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-13 19:36:57.2731 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-13 19:36:57.2926 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-13 19:36:57.3454 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-13 19:36:57.4009 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config +2024-06-13 19:36:57.4236 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-13 19:36:57.4699 Info Configuration initialized. +2024-06-13 19:38:31.7717 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-13 19:38:31.8426 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-13 19:38:31.8596 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-13 19:38:31.8980 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-13 19:38:31.9252 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config +2024-06-13 19:38:31.9252 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-13 19:38:31.9630 Info Configuration initialized. +2024-06-13 19:40:55.1984 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-13 19:40:55.2502 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-13 19:40:55.2745 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-13 19:40:55.3251 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-13 19:40:55.3725 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config +2024-06-13 19:40:55.3951 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-13 19:40:55.4364 Info Configuration initialized. +2024-06-13 19:42:07.5828 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-13 19:42:07.6779 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-13 19:42:07.7067 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-13 19:42:07.7557 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-13 19:42:07.7942 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config +2024-06-13 19:42:07.8111 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-13 19:42:07.8423 Info Configuration initialized. +2024-06-13 19:45:16.5792 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-13 19:45:16.6104 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-13 19:45:16.6104 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-13 19:45:16.6483 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-13 19:45:16.6664 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config +2024-06-13 19:45:16.6810 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-13 19:45:16.7009 Info Configuration initialized. +2024-06-13 19:46:36.6316 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-06-13 19:46:36.6894 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-06-13 19:46:36.7137 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-06-13 19:46:36.7764 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-06-13 19:46:36.8200 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=D:\Code\DS\ds8-solution\ds-wms-service\DS.WMS.MainApi\bin\Debug\net8.0\nlog.config +2024-06-13 19:46:36.8415 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-06-13 19:46:36.8916 Info Configuration initialized. diff --git a/ds-wms-service/DS.WMS.MainApi/Properties/PublishProfiles/FolderProfile.pubxml.user b/ds-wms-service/DS.WMS.MainApi/Properties/PublishProfiles/FolderProfile.pubxml.user index a9cf79b6..4f60cead 100644 --- a/ds-wms-service/DS.WMS.MainApi/Properties/PublishProfiles/FolderProfile.pubxml.user +++ b/ds-wms-service/DS.WMS.MainApi/Properties/PublishProfiles/FolderProfile.pubxml.user @@ -6,7 +6,7 @@ <_PublishTargetUrl>D:\Code\PublishCopy\ds8-mainapi - True|2024-06-11T09:08:01.8930314Z||;True|2024-06-07T15:23:11.1389680+08:00||;True|2024-06-07T10:23:59.6079620+08:00||;True|2024-06-06T17:42:56.1843783+08:00||;True|2024-06-04T14:20:46.7742295+08:00||;True|2024-05-31T17:57:35.6858600+08:00||;True|2024-05-31T15:25:20.8503086+08:00||;True|2024-05-30T17:22:52.2563382+08:00||;True|2024-05-30T17:05:35.7504154+08:00||;True|2024-05-29T17:17:39.6966826+08:00||; + True|2024-06-13T11:48:34.0429148Z;True|2024-06-13T19:09:39.6804400+08:00;True|2024-06-13T15:41:56.9502735+08:00;True|2024-06-13T15:23:59.4555910+08:00;True|2024-06-13T15:12:55.6093356+08:00;True|2024-06-11T17:08:01.8930314+08:00;True|2024-06-07T15:23:11.1389680+08:00;True|2024-06-07T10:23:59.6079620+08:00;True|2024-06-06T17:42:56.1843783+08:00;True|2024-06-04T14:20:46.7742295+08:00;True|2024-05-31T17:57:35.6858600+08:00;True|2024-05-31T15:25:20.8503086+08:00;True|2024-05-30T17:22:52.2563382+08:00;True|2024-05-30T17:05:35.7504154+08:00;True|2024-05-29T17:17:39.6966826+08:00; \ No newline at end of file diff --git a/ds-wms-service/DS.WMS.MainApi/wwwroot/LinkAttach/1800846562843299840.txt b/ds-wms-service/DS.WMS.MainApi/wwwroot/LinkAttach/1800846562843299840.txt new file mode 100644 index 00000000..c5e1b689 --- /dev/null +++ b/ds-wms-service/DS.WMS.MainApi/wwwroot/LinkAttach/1800846562843299840.txt @@ -0,0 +1 @@ +这里是内容11232 \ No newline at end of file diff --git a/ds-wms-service/DS.WMS.Test/OpTest.cs b/ds-wms-service/DS.WMS.Test/OpTest.cs index fa348670..fee883e7 100644 --- a/ds-wms-service/DS.WMS.Test/OpTest.cs +++ b/ds-wms-service/DS.WMS.Test/OpTest.cs @@ -1,3 +1,4 @@ +using System.IO; using System.Reflection; using DS.Module.Core; using DS.Module.Core.Extensions; @@ -7,7 +8,10 @@ using DS.WMS.Core.Op.Entity; using DS.WMS.Core.Op.Interface; using DS.WMS.Core.Sys.Entity; using DS.WMS.Core.Sys.Interface; +using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.DependencyInjection; +using NPOI.HPSF; +using SharpCompress.Common; using SqlSugar; using SqlSugar.IOC; using Xunit; @@ -51,5 +55,42 @@ public class OpTest Assert.True(true); } + [Fact] + public void FileRead() + { + //var tenantDb = saasService.GetBizDbScopeById("1750335377144680448"); + + //var data = _commonSetService.GetSequenceNext(); + var path = "D:\\Code\\DS\\ds8-solution\\ds-wms-service\\DS.WMS.MainApi\\wwwroot\\LinkAttach\\1800846562843299840.txt"; + //var temp = new FileStream("D:\\Code\\DS\\ds8-solution\\ds-wms-service\\DS.WMS.MainApi\\wwwroot\\LinkAttach\\1800846562843299840.txt", FileMode.Open); + + try + { + var temp1 = File.ReadAllBytes(path); + var stream = new MemoryStream(temp1); + //using (var stream1= System.IO.File.Create(path)) + //{ + // await file.CopyToAsync(stream); + //} + using (FileStream fs = new FileStream(path, FileMode.OpenOrCreate)) + { + // ַתΪֽ + byte[] data = System.Text.Encoding.UTF8.GetBytes("11232"); + // дݵļ + fs.Write(data, 0, data.Length); + } + + //var result = new FileStreamResult(stream, "application/octet-stream") { FileDownloadName = "1800846562843299840.txt" }; + + } + catch (Exception ex) + { + // ¼쳣 + Console.WriteLine(ex.Message); + throw; + } + + Assert.True(true); + } } \ No newline at end of file diff --git a/ds-wms-service/DS.WMS.Test/Startup.cs b/ds-wms-service/DS.WMS.Test/Startup.cs index e2282133..5278ff57 100644 --- a/ds-wms-service/DS.WMS.Test/Startup.cs +++ b/ds-wms-service/DS.WMS.Test/Startup.cs @@ -54,6 +54,7 @@ public class Startup services.AddSqlSugarInstall(); services.AddSaasDbInstall(); services.AddPrintModuleInstall(); + } /// @@ -62,7 +63,7 @@ public class Startup /// public void Configure(IServiceProvider provider) { - + } } \ No newline at end of file