From f4bc147962a9f365793d0f3d85cb758d03e8a862 Mon Sep 17 00:00:00 2001 From: JT Date: Tue, 20 Jun 2023 10:55:49 +0800 Subject: [PATCH] Embed README --- .../Auth0Net.DependencyInjection.csproj | 5 +++++ src/Auth0Net.DependencyInjection/Cache/Auth0TokenCache.cs | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/Auth0Net.DependencyInjection/Auth0Net.DependencyInjection.csproj b/src/Auth0Net.DependencyInjection/Auth0Net.DependencyInjection.csproj index dba95c8..afeee24 100644 --- a/src/Auth0Net.DependencyInjection/Auth0Net.DependencyInjection.csproj +++ b/src/Auth0Net.DependencyInjection/Auth0Net.DependencyInjection.csproj @@ -16,6 +16,7 @@ https://github.com/Hawxy/Auth0Net.DependencyInjection git auth0,auth0.net,microsoft.extensions.dependencyinjection,httpclientfactory,asp.net + README.md @@ -47,4 +48,8 @@ + + + + diff --git a/src/Auth0Net.DependencyInjection/Cache/Auth0TokenCache.cs b/src/Auth0Net.DependencyInjection/Cache/Auth0TokenCache.cs index 717d28b..c65e715 100644 --- a/src/Auth0Net.DependencyInjection/Cache/Auth0TokenCache.cs +++ b/src/Auth0Net.DependencyInjection/Cache/Auth0TokenCache.cs @@ -71,12 +71,12 @@ public async ValueTask GetTokenAsync(string audience, CancellationToken internal static partial class Log { - [LoggerMessage(Message = "Auth0 Token was requested for audience: {audience}", Level = LogLevel.Debug)] + [LoggerMessage(EventId = 2001, Message = "Auth0 Token was requested for audience: {audience}", Level = LogLevel.Debug)] public static partial void TokenRequested(this ILogger logger, string audience); - [LoggerMessage(Message = "Auth0 Token cache is refreshing, fetching new token for audience: {audience}", Level = LogLevel.Debug)] + [LoggerMessage(EventId = 2002, Message = "Auth0 Token cache is refreshing, fetching new token for audience: {audience}", Level = LogLevel.Debug)] public static partial void CacheFetch(this ILogger logger, string audience); - [LoggerMessage(Message = "Auth0 Token for audience {audience} will expire in {expiry} seconds", Level = LogLevel.Debug)] + [LoggerMessage(EventId = 2003, Message = "Auth0 Token for audience {audience} will expire in {expiry} seconds", Level = LogLevel.Debug)] public static partial void ExpiresAt(this ILogger logger, string audience, double expiry); } \ No newline at end of file