NetPro.Serilog 6.0.8-beta.2

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

// Install NetPro.Serilog as a Cake Tool
#tool nuget:?package=NetPro.Serilog&version=6.0.8-beta.2&prerelease                

NetPro.Dependency使用

NuGet

依赖注入辅助程序集,依赖 NuGet

依赖注入

除了使用官方原生依赖注入外,支持通过接口和正则模式注入

接口方式注入

1、ITransientDependency

2、ISingletonDependency

3、IScopedDependency


  public interface IFreeSQLDemoByDependency {}
  public class FreeSQLDemoByDependency : IFreeSQLDemoByDependency, IScopedDependency//通过继承注入接口实现依赖注入
 {

 }

正则批量注入

services.BatchInjection("^XXX.", "Service$"); //批量注入以XXX前缀的程序集,Service结尾的类
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  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 was computed.  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. 
.NET Core netcoreapp3.1 is compatible. 
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 (1)

Showing the top 1 popular GitHub repositories that depend on NetPro.Serilog:

Repository Stars
LeonKou/NetPro
🌈An enhanced version with clean architecture of asp.netcore,efficiently manage startup,Support for netcore3.1/6.0
Version Downloads Last updated
6.0.16 307 7/24/2023
6.0.15 738 7/19/2022
6.0.14 457 7/10/2022
6.0.13 498 6/15/2022
6.0.12 420 6/15/2022
6.0.11 390 6/15/2022
6.0.10 424 6/11/2022
6.0.9 436 6/8/2022
6.0.8 489 5/26/2022
6.0.8-beta.3 501 5/24/2022
6.0.8-beta.2 116 5/24/2022
6.0.8-beta.1 111 5/24/2022