You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ILuObjectConverter.cs 751B

12345678910111213141516171819202122232425262728
  1. using Luticate2.Auth.Utils.Dbo.Fields;
  2. using Luticate2.Auth.Utils.Dbo.Result;
  3. namespace Luticate2.Auth.Utils.Interfaces
  4. {
  5. public interface ILuObjectConverterOptions
  6. {
  7. ILuConvertersTypeConverter TypeConverter { get; }
  8. ILuConvertersAllocator Allocator { get; }
  9. ILuObjectConverterDescriptorOptions DescriptorOptions { get; }
  10. }
  11. public interface ILuObjectConverter
  12. {
  13. // TODO add dstObject
  14. LuResult<object> Convert(object srcObj, LuFieldDbo path, LuPartialFieldsDbo fields, ILuObjectConverterOptions options);
  15. }
  16. public interface ILuObjectConverter<TTypeFrom, TTypeTo> : ILuObjectConverter
  17. {
  18. }
  19. public interface ILuObjectConverterIdentity : ILuObjectConverter
  20. {
  21. }
  22. }