Refactor AdminContentProvider
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\Core\FileTime.Core.Abstraction\FileTime.Core.Abstraction.csproj" />
|
||||
<ProjectReference Include="..\FileTime.Providers.Remote.Abstractions\FileTime.Providers.Remote.Abstractions.csproj" />
|
||||
<ProjectReference Include="..\FileTime.Providers.Remote\FileTime.Providers.Remote.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -6,8 +6,8 @@ namespace FileTime.Providers.LocalAdmin;
|
||||
public interface IAdminContentAccessorFactory
|
||||
{
|
||||
bool IsAdminModeSupported { get; }
|
||||
Task<IRemoteItemCreator> CreateAdminItemCreatorAsync();
|
||||
Task<IRemoteItemDeleter> CreateAdminItemDeleterAsync();
|
||||
Task<IRemoteItemMover> CreateAdminItemMoverAsync();
|
||||
Task<IRemoteContentWriter> CreateContentWriterAsync(NativePath nativePath);
|
||||
Task<RemoteItemCreator> CreateAdminItemCreatorAsync();
|
||||
Task<RemoteItemDeleter> CreateAdminItemDeleterAsync();
|
||||
Task<RemoteItemMover> CreateAdminItemMoverAsync();
|
||||
Task<RemoteContentWriter> CreateContentWriterAsync(NativePath nativePath);
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
using FileTime.Core.ContentAccess;
|
||||
|
||||
namespace FileTime.Providers.LocalAdmin;
|
||||
|
||||
public interface IAdminContentProvider : IContentProvider
|
||||
{
|
||||
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
using FileTime.Server.Common;
|
||||
using FileTime.Providers.Remote;
|
||||
|
||||
namespace FileTime.Providers.LocalAdmin;
|
||||
|
||||
@@ -6,7 +6,7 @@ public interface IAdminElevationManager
|
||||
{
|
||||
bool IsAdminModeSupported { get; }
|
||||
bool IsAdminInstanceRunning { get; }
|
||||
Task<IRemoteConnection> CreateConnectionAsync();
|
||||
Task<IRemoteContentProvider> GetRemoteContentProviderAsync();
|
||||
string ProviderName { get; }
|
||||
Task CreateAdminInstanceIfNecessaryAsync(string? confirmationMessage = null);
|
||||
}
|
||||
Reference in New Issue
Block a user