QYQ.Base.Common 8.2.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package QYQ.Base.Common --version 8.2.0                
NuGet\Install-Package QYQ.Base.Common -Version 8.2.0                
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="QYQ.Base.Common" Version="8.2.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add QYQ.Base.Common --version 8.2.0                
#r "nuget: QYQ.Base.Common, 8.2.0"                
#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 QYQ.Base.Common as a Cake Addin
#addin nuget:?package=QYQ.Base.Common&version=8.2.0

// Install QYQ.Base.Common as a Cake Tool
#tool nuget:?package=QYQ.Base.Common&version=8.2.0                

公共组件

扩展方法

错误处理中间件

        /// <summary>
        /// 使用中间件
        /// </summary>
        /// <param name="builder"></param>
        /// <returns></returns>
        public static IApplicationBuilder UseErrorHandling(this IApplicationBuilder builder)
        {
            ...
        }

Http日志中间件

      /// <summary>
      /// 添加http请求日志中间件
      /// </summary>
      /// <param name="app"></param>
      public static void UseQYQHttpLogging(this WebApplication app)
      {
          ...
      }

Apollo扩展

        /// <summary>
        /// 添加apollo配置
        /// </summary>
        /// <param name="builder"></param>
        /// <returns></returns>
        public static IApolloConfigurationBuilder AddQYQApollo(this IConfigurationBuilder builder)
        {
            ...
        }

鉴权扩展

    /// <summary>
    /// 添加身份验证
    /// </summary>
    /// <param name="services"></param>
    /// <param name="configuration"></param>
    /// <returns></returns>
    public static IServiceCollection AddQYQAuthentication(this IServiceCollection services, IConfiguration configuration)
    {
        ...
    }

IOC注册扩展

     /// <summary>
     /// 注入多个服务
     /// </summary>
     /// <param name="services"></param>
     /// <param name="matchAssemblies">要扫描的程序集名称正则表达式,默认为[^XXXX.XXXX|^XXXX.]多个使用|分隔</param>
     /// <returns></returns>
     public static IServiceCollection AddMultipleService(this IServiceCollection services, string matchAssemblies = "")
     {
     	...
     }
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. 
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
8.4.0 62 1/14/2025
8.3.0 107 12/23/2024
8.2.0 108 11/15/2024
8.1.9 114 10/29/2024
8.1.8 121 10/9/2024
8.1.3 127 5/27/2024