VerEasy.Extend 0.1.3

dotnet add package VerEasy.Extend --version 0.1.3
                    
NuGet\Install-Package VerEasy.Extend -Version 0.1.3
                    
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="VerEasy.Extend" Version="0.1.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="VerEasy.Extend" Version="0.1.3" />
                    
Directory.Packages.props
<PackageReference Include="VerEasy.Extend" />
                    
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 VerEasy.Extend --version 0.1.3
                    
#r "nuget: VerEasy.Extend, 0.1.3"
                    
#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 VerEasy.Extend@0.1.3
                    
#: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=VerEasy.Extend&version=0.1.3
                    
Install as a Cake Addin
#tool nuget:?package=VerEasy.Extend&version=0.1.3
                    
Install as a Cake Tool

常用服务扩展类

简介

这是一个用于扩展服务功能的通用类库,设计目的是提高代码的可重用性和简化项目开发流程。它适用于需要在多个项目中共享的功能模块。此扩展类可以方便地集成到现有项目中,提供统一的解决方案。

特性

  • 模块化设计:可根据需要选择性使用。
  • 易于集成:适配常见框架(如 .NET Core)。
  • 高扩展性:提供了良好的扩展点,便于进一步定制。
  • 内置常用功能:包含缓存处理、日志封装、API请求辅助等常用工具。

使用场景

  • 多项目共享的通用工具。
  • 简化企业级项目开发流程。
  • 提高开发效率,减少重复代码。

功能概览

1. 缓存管理

  • 提供内存缓存与 Redis 缓存的统一接口。
  • 自动切换:当 Redis 未配置时,自动降级为内存缓存。

2. 日志记录

  • 封装常用日志功能。
  • 支持多种日志输出方式(如文件、控制台、远程日志服务)。

3. API 请求辅助

  • 内置 GET/POST 请求封装。
  • 支持企业微信消息推送模板的扩展。

4. 配置管理

  • 提供统一的配置读取方式。
  • 支持环境变量和应用配置文件的动态切换。

快速开始

1. 安装

将扩展类库添加到项目中,您可以选择通过 NuGet 包或直接引用代码:

build.Services.AddVerEasyServiceSetup(build.Host)

结语

本扩展类库旨在通过统一的接口和模块化设计,帮助开发者快速构建高效、可维护的应用程序。如果您在使用过程中有任何问题或建议,欢迎反馈!

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.3 182 1/14/2025
0.1.2 162 1/14/2025
0.1.1 166 1/14/2025
0.1.0 171 1/13/2025