loggerFactory.AddProvider(new DbLoggerProvider(app.ApplicationServices));
using (var scope = _serviceProvider.CreateScope())
{
var db = scope.ServiceProvider.GetRequiredService<CuDb>();
db.Logs.Add(new CheckUpDb.Log() { Date = DateTime.UtcNow, LogLevel = logLevel, Message = formatter(state, exception) });
db.SaveChanges();
}
Environment=KEY=VALUE
{
"ConnectionStrings": {
"DefaultConnection": "SomeString"
}
}
Environment=ConnectionStrings__DefaultConnection='SomeString'
void InitializeSpaceObject(SpaceObject spaceObject)
{
spaceObject.Initialize();
}
void InitializeSpaceObject(ISpaceObject spaceObject)
{
spaceObject.Initialize();
}