docs(services): 📃 add/update serialization TODOs

This commit is contained in:
Collin M. Barrett 2020-09-13 17:37:49 -05:00
parent 5d073a3466
commit 4fab66a396
2 changed files with 2 additions and 1 deletions

View file

@ -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; }

View file

@ -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"));
}