CoreWebAPI.Common 1.4.37

dotnet add package CoreWebAPI.Common --version 1.4.37                
NuGet\Install-Package CoreWebAPI.Common -Version 1.4.37                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CoreWebAPI.Common" Version="1.4.37" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CoreWebAPI.Common --version 1.4.37                
#r "nuget: CoreWebAPI.Common, 1.4.37"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install CoreWebAPI.Common as a Cake Addin
#addin nuget:?package=CoreWebAPI.Common&version=1.4.37

// Install CoreWebAPI.Common as a Cake Tool
#tool nuget:?package=CoreWebAPI.Common&version=1.4.37                

已发布版本

V1.4.36

SerilogHelper

解决内存溢出问题, Log.Logger = logger.CreateLogger(); ... Log.CloseAndFlush(); 替换为 var log = logger.CreateLogger(); ... log.Dispose();

V1.4.35

ExcelHelper

ExcelToDataTable使用XSSFWorkbook

V1.4.34

SerilogHelper

输出文件模版调整为{Message:lj}

V1.4.33

SerilogHelper

  1. 增加写入本地文件日志开关
  2. 增加写入ELK逻辑 "Serilog": { "WriteToFile": { "Enabled": false }, "WriteToELK": { "Enabled": true, "Connection": "http://localhost:9200", "Username": "es_read_write", "Password": "es_read_write", "IndexName": "EsunWMSCoreLog", // 索引名称,设置为项目名 "IndexLifecyclePolicy": "EsunWMSCoreLog", // 索引生命周期策略,不设置默认创建索引名策略 "MaximumAge": "7d" // 设置日志保存的最大时长,7d:7天;7h:7小时;7m:7分钟 }, ... },

ExcelHelper

  1. 读取到空白行时,停止继续读取
  2. SXSSFWorkbook默认会生成临时文件到/tmp目录,调用dispose自动删除临时文件

V1.4.30

SerilogHelper

  1. 解决并发内存泄漏、内容丢失问题

V1.4.29

SerilogHelper

  1. 去除读写锁

V1.4.28

SerilogHelper

  1. 调整为异步线程

V1.4.27

GetMessage

  1. 调用平台GRPC服务逻辑调整,使用时必须注册Redis,appsetting中增加多语言服务地址 { "Startup":{ "MultiLangGrpcServiceConn": "" } }

RedisCacheManager

  1. 连接配置调整

V1.4.26

GetCString

  1. 去除可选参数
  2. 增加GetCStringNoTrim,转换字符串不去除前后空格

V1.4.25

ProgressHelper

  1. 增加前端动态查询条件转Progress语句

ExcelHelper

  1. 输出报错抛出异常

GetCString

  1. 增加可选参数,不去除空格(默认去前后空格)

StaticHttpContext

1.增加TraceIdentifier,表示跟踪日志中的请求的唯一标识符

SerilogHelper

  1. 增加写入mongodb "Serilog": { "WriteToMongoDB": { "Enabled": true, "Connection": "mongodb://10.124.0.11:27017", "DataBase": "logs", "CollectionName": "core_webapi_log" },
  2. 写日志改为异步处理

V1.4.24

重新打包

V1.4.23

SerilogHelper 未注册UseStaticHttpContext默认日志文件名API、USER为空

LogWriteLock读写锁增加异常捕获

V1.4.22

安全问题包升级

NPOI、RestSharp、System.IdentityModel.Tokens.Jwt

UtilConvert 增加GetCLong基础数据转换

SerilogHelper 增加读写锁

HttpHelper 增加证书跳过逻辑

CheckCertValid默认false,跳过证书有效性校验

V1.4.21

ExcelHelper 输出调整

输出Excel日期类型的单元格启用筛选时候仍然按照字符串的方式筛选

V1.4.20

GetCInt BUG修复

空字符串返回0,小数返回整数

V1.4.18

DbDynamicQueryHelper BUG修复

String类型nq条件sql错误

V1.4.17

ExcelHelper修复

日期值单元格类型设置为日期

V1.4.16

动态查询方法调整

PgsqlDynamicWhereSqlParaGet:字符串值为null时,查询条件调整为同时null和空串比较

V1.4.10

Serilog日志模块调整

  1. 增加路径配置

  2. 增加指定路径、用户输出控制

      "Serilog": {
        "Info": {
          "Enabled": true,
          "Path": "D:\\Tools\\...\\bin\\Debug\\net5.0\\",
          "AllowAllApis": false,
          "AllowAPIs": [
            "/api/demo/query"
          ],
          "IgnoreApis": [
            "/api/values/get"
          ],
          "AllowAllUsers": false,
          "AllowUsers": [
            "fine"
          ],
          "IgnoreUsers": [
            "demo"
          ]
        },
        "Error": {
          "Enabled": true,
          "Path": "D:\\Tools\\...\\bin\\Debug\\net5.0\\",
          "AllowAllApis": true,
          "AllowAPIs": [
    
          ],
          "IgnoreApis": [
    
          ],
          "AllowAllUsers": true,
          "AllowUsers": [
    
          ],
          "IgnoreUsers": [
    
          ]
        }
      },
    

AES加密类

  1. 增加aes加密协议,所有appsetting里的密码连接配置按此规则加密解密
Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on CoreWebAPI.Common:

Package Downloads
CoreWebAPI.Extensions

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.4.37 120 1/2/2025
1.4.36 79 12/19/2024
1.4.35 86 12/11/2024
1.4.34 86 12/10/2024
1.4.33 126 12/9/2024
1.4.32 101 10/21/2024
1.4.31 105 10/21/2024
1.4.30 149 10/16/2024
1.4.29 110 10/7/2024
1.4.27 104 9/20/2024
1.4.26 190 9/5/2024
1.4.24 113 8/1/2024
1.4.23 126 6/25/2024
1.4.22 129 6/25/2024
1.4.21 124 6/4/2024
1.4.21-preview6 145 1/19/2024
1.4.21-preview5 102 1/18/2024
1.4.21-preview4 96 1/18/2024
1.4.21-preview3 102 1/18/2024
1.4.21-preview2 107 1/10/2024
1.4.21-preview1 115 1/10/2024
1.4.20 257 12/6/2023
1.4.19 1,795 11/10/2023
1.4.18 168 10/18/2023
1.4.17 154 9/19/2023
1.4.16 187 6/19/2023
1.4.15 180 6/2/2023
1.4.14 148 6/1/2023
1.4.13 160 5/19/2023
1.4.12 141 5/15/2023
1.4.11 169 5/12/2023
1.4.10 327 4/24/2023
1.4.10-preview2 122 4/24/2023
1.4.10-preview1 130 4/19/2023
1.4.9 207 3/28/2023
1.4.9-preview2 134 3/9/2023
1.4.9-preview1 126 3/9/2023
1.4.8 343 2/1/2023
1.4.7 324 12/7/2022
1.4.6 324 11/29/2022
1.4.5 332 11/21/2022
1.4.4 317 11/21/2022
1.4.3 329 11/21/2022
1.4.2 443 10/14/2022
1.4.1 521 8/26/2022
1.3.12 498 8/24/2022
1.3.11 484 8/23/2022
1.3.10 471 8/22/2022
1.3.9 460 8/22/2022
1.3.8 473 8/9/2022
1.3.7 475 7/29/2022
1.3.6 1,882 7/21/2022
1.3.5 537 7/18/2022
1.3.4 522 7/14/2022
1.3.3 513 7/12/2022
1.3.2 513 7/7/2022
1.3.1 495 6/30/2022
1.3.0 531 6/22/2022
1.2.9 509 6/20/2022
1.2.8 498 6/15/2022
1.2.7 515 6/9/2022
1.2.6 529 6/8/2022
1.2.5 1,222 6/1/2022
1.2.4 563 6/1/2022
1.2.3 535 5/31/2022
1.2.1 599 5/6/2022
1.2.0 572 5/6/2022
1.1.9 567 5/6/2022
1.1.8 579 5/5/2022
1.1.7 551 5/5/2022
1.1.6 544 5/3/2022
1.1.5 556 4/29/2022
1.1.4 591 4/29/2022
1.1.3 1,529 4/8/2022
1.1.2 651 2/7/2022
1.1.1 632 1/20/2022
1.1.0 650 1/20/2022
1.0.10 1,158 12/10/2021
1.0.9 649 12/9/2021
1.0.8 446 12/9/2021
1.0.7 579 12/9/2021
1.0.6 1,355 12/6/2021
1.0.5 1,068 12/3/2021
1.0.4 982 11/22/2021
1.0.3 980 11/22/2021
1.0.2 1,501 11/15/2021
1.0.1 489 11/15/2021