예제 #1
0
 public Serilog_Enrichers_Tests()
 {
     _tenancyOptions = ServiceProvider.GetRequiredService <IOptions <AbpAspNetCoreMultiTenancyOptions> >().Value;
     _serilogOptions =
         ServiceProvider.GetRequiredService <IOptions <AbpAspNetCoreSerilogOptions> >().Value;
     _logger = ServiceProvider.GetRequiredService <ILogger <Serilog_Enrichers_Tests> >();
 }
예제 #2
0
 public AbpSerilogMiddleware(
     ICurrentTenant currentTenant,
     ICurrentUser currentUser,
     ICurrentClient currentClient,
     ICorrelationIdProvider correlationIdProvider,
     IOptions <AbpAspNetCoreSerilogOptions> options)
 {
     _currentTenant         = currentTenant;
     _currentUser           = currentUser;
     _currentClient         = currentClient;
     _correlationIdProvider = correlationIdProvider;
     _options = options.Value;
 }