Token.Auditing 1.0.0

dotnet add package Token.Auditing --version 1.0.0
NuGet\Install-Package Token.Auditing -Version 1.0.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="Token.Auditing" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Token.Auditing --version 1.0.0
#r "nuget: Token.Auditing, 1.0.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 Token.Auditing as a Cake Addin
#addin nuget:?package=Token.Auditing&version=1.0.0

// Install Token.Auditing as a Cake Tool
#tool nuget:?package=Token.Auditing&version=1.0.0

TokenModule

NuGet NuGet

介绍

TokenModule依赖审计日志 目前不支持直接数据库保存 只控制台显示

使用教程

// 在Module中使用
[DependOn(
             typeof(TokenAuditingModule)
             )]
// 可扩展委托 

    public override void ConfigureServices(IServiceCollection services)
    {
        Configure<TokenAuditingOptions>(x =>
        {
            // 是否启动审计日志
            x.IsEnabled = true;
            // 当前服务名称
            x.ApplicationName = nameof(NetCoreHostModule);
            // 请求前返回参数
            x.StartAuditing = (data) => { };
            // 正常请求结束返回的参数
            x.EndAuditing = (date) => { };
            // 异常结束返回的参数
            x.ErrorAuditing = (data) => { };
        });
    }
Product Compatible and additional computed target framework versions.
.NET 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. 
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
1.0.0 224 7/7/2022

简易可扩展的TokenModule审计日志