change TargetFramework

This commit is contained in:
yubaolee
2021-03-13 22:27:19 +08:00
parent 00509249c5
commit f652d533aa
7 changed files with 6 additions and 30 deletions

View File

@@ -1,24 +0,0 @@

using Microsoft.Extensions.Logging;
namespace OpenAuth.WebApi.Model
{
/// <summary>
/// 从3.0开始Startup ConfigureServices中不能使用ILogger需要扩展
/// </summary>
public class StartupLogger
{
private readonly ILogger<StartupLogger> _logger;
public StartupLogger(ILogger<StartupLogger> logger)
{
_logger = logger;
}
public void LogInformation(string message)
{
_logger.LogInformation(message);
}
}
}