mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-19 01:58:01 +08:00
fix issue #I3QBZI
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
|
||||
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace Infrastructure
|
||||
{
|
||||
/// <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);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user