The DI wiring of this nuget through AddDistributedPostgreSqlCache depends on the registration of IHostApplicationLifetime for the DatabaseExpiredItemsRemoverLoop.
This is usefull when registering applications through the hostbuilder.
We are also depending on AWS lambdas which don't have the luxury of hostbuilders (unfortunately) and therefor lacking IHostApplicationLifetime. A solution could be an optional dependency to inject.
The DI wiring of this nuget through
AddDistributedPostgreSqlCache
depends on the registration ofIHostApplicationLifetime
for theDatabaseExpiredItemsRemoverLoop
. This is usefull when registering applications through the hostbuilder. We are also depending on AWS lambdas which don't have the luxury of hostbuilders (unfortunately) and therefor lackingIHostApplicationLifetime
. A solution could be an optional dependency to inject.