GetAllAsync not implemented for HttpRemote store
Is there a technical or security reason why GetAllAsync if not implemented in the HttpRemote store? As we have many microservices, implementing the store as an API is ideal for us. But we also need to be able to create the databases for the microservices as required.
We use the code below to Migrate the databases, but as GetAllAsync is not implemented, it doesn't work. As the service has no way of knowing what tenants are defined, we cannot even call them individually to get the details.
var store = app.Services.GetRequiredService<IMultiTenantStore<TenantInfo>>();
foreach (var tenant in await store.GetAllAsync())
{
await using var db = new AppDbContext(tenant);
await db.Database.MigrateAsync();
}
Also, I notice in the latest version of the code, the sample for the Http Remote store are missing, the looking at an older version of the code I found a previous version, this code still builds, even with .Net 7, is there anything I need to do to change the Http Remote Server?
Hi, sorry for the slow reply. No, there is no specific reason except that the store came before the get all method if I remember correctly and I didn't implement it. If you haven't already you shouldn't have any problem doing so.
I should add it to the library -- I want to rework that store completely though because I think it is overly complicated.