示例#1
0
文件: NLogModule.cs 项目: Roytin/Rox
 public override Task ConfigureServices(ServicesConfigureContext context, CancellationToken cancellationToken)
 {
     context.Services.AddLogging(loggingBuilder =>
     {
         loggingBuilder.ClearProviders();
         loggingBuilder.SetMinimumLevel(LogLevel.Trace);
         loggingBuilder.AddNLog(context.Configuration);
     });
     return(base.ConfigureServices(context, cancellationToken));
 }
示例#2
0
 public override Task ConfigureServices(ServicesConfigureContext context, CancellationToken cancellationToken)
 {
     context.Services.AddControllers();
     return(Task.CompletedTask);
 }
示例#3
0
 public override Task ConfigureServices(ServicesConfigureContext context, CancellationToken cancellationToken)
 {
     return(base.ConfigureServices(context, cancellationToken));
 }