Open by path

This commit is contained in:
2022-05-30 17:09:10 +02:00
parent e9ed2c01e6
commit 1a32e97973
12 changed files with 82 additions and 18 deletions

View File

@@ -24,4 +24,5 @@ public interface IContentProvider : IContainer, IOnContainerEnter
NativePath GetNativePath(FullName fullName);
Task<byte[]?> GetContentAsync(IElement element, int? maxLength = null, CancellationToken cancellationToken = default);
bool CanHandlePath(NativePath path);
}

View File

@@ -2,5 +2,5 @@ namespace FileTime.Core.Interactions;
public interface IInputInterface
{
Task<bool> ReadInputs(IEnumerable<IInputElement> fields);
Task<bool> ReadInputs(params IInputElement[] fields);
}

View File

@@ -13,4 +13,6 @@ public interface ITimelessContentProvider
bool forceResolve = false,
AbsolutePathType forceResolvePathType = AbsolutePathType.Unknown,
ItemInitializationSettings itemInitializationSettings = default);
Task<IItem?> GetItemByNativePathAsync(NativePath nativePath, PointInTime? pointInTime = null);
}