No reviewers
Labels
No Label
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: on.nemtina/persistence#31
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "feature-mapping"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -0,0 +52,4 @@
/// <inheritdoc/>
public async Task<IEnumerable<SetpointLogDto>> GetPart(DateTimeOffset dateBegin, int take, CancellationToken token)
{
var res = await setpointClient.GetPart(dateBegin, take, token);
пусть будет result, также как сейчас в остальных методах
@ -0,0 +70,4 @@
/// <inheritdoc/>
public void Dispose()
{
setpointClient.Dispose();
добавить GC.SuppressFinalize(this);
@ -0,0 +7,4 @@
namespace DD.Persistence.Client.Clients.Mapping.Clients;
/// <inheritdoc/>
public class TimestampedMappingClient(ITimestampedValuesClient client, Dictionary<Guid, Type>? mappingConfigs) : ITimestampedMappingClient
Нужно сделать отдельный сервис, который отвечает за кеширование маппингов, и зарегистрировать его в DI.
@ -0,0 +58,4 @@
return mappedDtos;
});
//var genericMapperType = typeof(TimestampedSetMapper<>).MakeGenericType(type);
Желательно комментарии стереть
@ -0,0 +95,4 @@
var value = jsonElement.Deserialize(property.PropertyType);
property.SetValue(entity, value);
}
catch (Exception) { }
Тут внутри блока Exception пусто, наверное, нужна какая-то обработка?
@ -29,0 +31,4 @@
}
public static IServiceCollection AddPersistenceMapping(this IServiceCollection services, Dictionary<Guid, Type>? mappingConfigs)
Dictionary<Guid, Type>? mappingConfigs - не nullable