CoreWebAPI.Common 1.4.45

dotnet add package CoreWebAPI.Common --version 1.4.45
                    
NuGet\Install-Package CoreWebAPI.Common -Version 1.4.45
                    
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.45" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CoreWebAPI.Common" Version="1.4.45" />
                    
Directory.Packages.props
<PackageReference Include="CoreWebAPI.Common" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CoreWebAPI.Common --version 1.4.45
                    
#r "nuget: CoreWebAPI.Common, 1.4.45"
                    
#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.
#:package CoreWebAPI.Common@1.4.45
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CoreWebAPI.Common&version=1.4.45
                    
Install as a Cake Addin
#tool nuget:?package=CoreWebAPI.Common&version=1.4.45
                    
Install as a Cake Tool

已发布版本

V1.4.45

SerilogServer

跨日清理所有Logger逻辑

V1.4.44

SerilogServer

输出日志路径调整

V1.4.43

SerilogServer

修改日志输出逻辑 1、最大句柄数由配置文件控制 2、当前句柄数>最大句柄数的一定百分比,且距离上次清理时间>释放时间,执行清理逻辑 3、当前已达最大句柄时,日志写入紧急log,共用同一句柄

appsetting.json新增 "Serilog": { "FileSizeLimitBytes": 536870912, // 滚动创建日志大小,单位KB,默认512M "MaxUserLoggers": 100, // 最大句柄数量,默认50,尽量不要高于50,并发高的情况下容易卡死 "BufferSize": 2000, // 每个句柄可用缓冲区,默认2000,配置越大写入速度越快,但容易导致进程卡死 "IdleReleaseMinutes": 1, // 空闲句柄释放时间,单位分钟,默认10分钟,清理句柄时,超过该时间未使用的句柄会被释放 "CleanPercentage": 0.8, // 执行清理逻辑百分比,默认0.8即80%,句柄数量超过最大句柄数量该百分比值时会执行清理逻辑 "CleanMinutes": 1, // 清理间隔时间,单位分钟,默认5分钟,距离上次执行清理逻辑后过了该时间才会重新清理句柄 "ConfigUpdateMinutes": 5, // 配置刷新时间,单位分钟,默认5分钟,日志相关配置文件修改后不立即生效,服务每过该时间重新获取一次配置 "Error": { // 为了减少句柄数量,该配置弃用,全部使用Info的配置 "Enabled": true, "Path": "", "AllowAllApis": true, "AllowAllUsers": true } },

V1.4.42

SqlSugarRedisCache

数据库连接加密

RedisCacheManager

数据库连接加密

V1.4.41

AuthRedisBasket

用户认证器修复bug 用户认证Redis和通用Redis连接区分,原本后创建的连接会覆盖先创建的连接

V1.4.40

AuthRedisBasket

用户认证器修复bug 不启用本地Redis认证,或未配置正确的Redis地址时,发起请求时抛出AuthRedis异常问题 AuthRedis异常捕获

V1.4.39

AuthRedisBasket

用户认证器 本地鉴权校验使用Redis

V1.4.38

SerilogHelper

解决日志有时候不输出问题 输出日志改为同步

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.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.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.45 168 7/2/2025
1.4.44 142 7/2/2025
1.4.43 183 6/25/2025
1.4.42 211 3/19/2025
1.4.41 165 3/19/2025
1.4.40 226 3/18/2025
1.4.39 343 3/5/2025
1.4.38 234 3/5/2025
1.4.37 238 1/2/2025
1.4.36 129 12/19/2024
1.4.35 121 12/11/2024
1.4.34 118 12/10/2024
1.4.33 172 12/9/2024
1.4.32 139 10/21/2024
1.4.31 139 10/21/2024
1.4.30 180 10/16/2024
1.4.29 144 10/7/2024
1.4.27 137 9/20/2024
1.4.26 235 9/5/2024
1.4.24 140 8/1/2024
1.4.23 169 6/25/2024
1.4.22 154 6/25/2024
1.4.21 155 6/4/2024
1.4.21-preview6 154 1/19/2024
1.4.21-preview5 110 1/18/2024
1.4.21-preview4 103 1/18/2024
1.4.21-preview3 110 1/18/2024
1.4.21-preview2 115 1/10/2024
1.4.21-preview1 124 1/10/2024
1.4.20 267 12/6/2023
1.4.19 1,806 11/10/2023
1.4.18 181 10/18/2023
1.4.17 168 9/19/2023
1.4.16 220 6/19/2023
1.4.15 224 6/2/2023
1.4.14 181 6/1/2023
1.4.13 201 5/19/2023
1.4.12 179 5/15/2023
1.4.11 198 5/12/2023
1.4.10 373 4/24/2023
1.4.10-preview2 153 4/24/2023
1.4.10-preview1 160 4/19/2023
1.4.9 241 3/28/2023
1.4.9-preview2 162 3/9/2023
1.4.9-preview1 154 3/9/2023
1.4.8 377 2/1/2023
1.4.7 355 12/7/2022
1.4.6 354 11/29/2022
1.4.5 362 11/21/2022
1.4.4 348 11/21/2022
1.4.3 358 11/21/2022
1.4.2 479 10/14/2022
1.4.1 558 8/26/2022
1.3.12 530 8/24/2022
1.3.11 526 8/23/2022
1.3.10 507 8/22/2022
1.3.9 495 8/22/2022
1.3.8 511 8/9/2022
1.3.7 514 7/29/2022
1.3.6 1,927 7/21/2022
1.3.5 575 7/18/2022
1.3.4 562 7/14/2022
1.3.3 553 7/12/2022
1.3.2 553 7/7/2022
1.3.1 536 6/30/2022
1.3.0 570 6/22/2022
1.2.9 549 6/20/2022
1.2.8 536 6/15/2022
1.2.7 555 6/9/2022
1.2.6 571 6/8/2022
1.2.5 1,267 6/1/2022
1.2.4 606 6/1/2022
1.2.3 577 5/31/2022
1.2.1 643 5/6/2022
1.2.0 618 5/6/2022
1.1.9 609 5/6/2022
1.1.8 625 5/5/2022
1.1.7 592 5/5/2022
1.1.6 587 5/3/2022
1.1.5 601 4/29/2022
1.1.4 635 4/29/2022
1.1.3 1,576 4/8/2022
1.1.2 701 2/7/2022
1.1.1 685 1/20/2022
1.1.0 700 1/20/2022
1.0.10 1,210 12/10/2021
1.0.9 700 12/9/2021
1.0.8 497 12/9/2021
1.0.7 630 12/9/2021
1.0.6 1,407 12/6/2021
1.0.5 1,116 12/3/2021
1.0.4 1,036 11/22/2021
1.0.3 1,029 11/22/2021
1.0.2 1,553 11/15/2021
1.0.1 539 11/15/2021