mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
docs(services): 📃 add/update serialization TODOs
This commit is contained in:
parent
5d073a3466
commit
4fab66a396
2 changed files with 2 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ namespace FilterLists.Directory.Infrastructure.Persistence.Queries.Entities
|
|||
{
|
||||
public class FilterList
|
||||
{
|
||||
// TODO: use private setters on all entity props after System.Text.Json supports seeding in net5.0
|
||||
// TODO: use private setters on all entity/vm props after System.Text.Json support
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; } = null!;
|
||||
public string? Description { get; set; }
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ public static class ConfigurationExtensions
|
|||
{
|
||||
public static void AddApiClients(this IServiceCollection services)
|
||||
{
|
||||
// TODO: use SystemTextJsonContentSerializer() once less feature-limited
|
||||
services.AddRefitClient<IDirectoryApi>()
|
||||
.ConfigureHttpClient(c => c.BaseAddress = new Uri("http://directory-api"));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue