QYQ.Base.Common
8.4.0
dotnet add package QYQ.Base.Common --version 8.4.0
NuGet\Install-Package QYQ.Base.Common -Version 8.4.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.4.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.4.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: QYQ.Base.Common, 8.4.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.4.0 // Install QYQ.Base.Common as a Cake Tool #tool nuget:?package=QYQ.Base.Common&version=8.4.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
公共组件
扩展方法
错误处理中间件
/// <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 | Versions 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.
-
net8.0
- Com.Ctrip.Framework.Apollo.Configuration (>= 2.11.0)
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 8.0.11)
- Newtonsoft.Json (>= 13.0.3)
- QRCoder-ImageSharp (>= 0.10.0)
- System.IdentityModel.Tokens.Jwt (>= 8.2.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.