修改扩展注入
This commit is contained in:
parent
efd6db3458
commit
7ddd6b449d
|
|
@ -26,7 +26,8 @@ using System.Diagnostics;
|
|||
using System.Reflection;
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
|
||||
builder.Services.AddHttpClient();
|
||||
builder.Services.AddHttpContextAccessor(); //添加httpContext注入访问
|
||||
#region 日志
|
||||
// Add services to the container.
|
||||
builder.Host.UseSerilog((context, services, configuration) => configuration
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user