Updated to latest moonlight and mooncore version. Done refactoring to async scheme and other changes. Recreated database migrations and cleaned models

This commit is contained in:
2025-09-22 12:13:57 +02:00
parent 91fb15a03e
commit 85392208c4
150 changed files with 2722 additions and 2726 deletions

View File

@@ -15,15 +15,15 @@ public class ServerFsAccess : IFsAccess
FileSystemService = fileSystemService;
}
public Task CreateFile(string path)
=> FileSystemService.Touch(Id, path);
public Task CreateFileAsync(string path)
=> FileSystemService.TouchAsync(Id, path);
public Task CreateDirectory(string path)
=> FileSystemService.Mkdir(Id, path);
public Task CreateDirectoryAsync(string path)
=> FileSystemService.MkdirAsync(Id, path);
public async Task<FsEntry[]> List(string path)
public async Task<FsEntry[]> ListAsync(string path)
{
var entries = await FileSystemService.List(Id, path);
var entries = await FileSystemService.ListAsync(Id, path);
return entries.Select(x => new FsEntry()
{
@@ -35,28 +35,28 @@ public class ServerFsAccess : IFsAccess
}).ToArray();
}
public Task Move(string oldPath, string newPath)
=> FileSystemService.Move(Id, oldPath, newPath);
public Task MoveAsync(string oldPath, string newPath)
=> FileSystemService.MoveAsync(Id, oldPath, newPath);
public Task Read(string path, Func<Stream, Task> onHandleData)
public Task ReadAsync(string path, Func<Stream, Task> onHandleData)
{
throw new NotImplementedException();
}
public Task Write(string path, Stream dataStream)
public Task WriteAsync(string path, Stream dataStream)
{
throw new NotImplementedException();
}
public Task Delete(string path)
=> FileSystemService.Delete(Id, path);
public Task DeleteAsync(string path)
=> FileSystemService.DeleteAsync(Id, path);
public Task UploadChunk(string path, int chunkId, long chunkSize, long totalSize, byte[] data)
public Task UploadChunkAsync(string path, int chunkId, long chunkSize, long totalSize, byte[] data)
{
throw new NotImplementedException();
}
public Task<byte[]> DownloadChunk(string path, int chunkId, long chunkSize)
public Task<byte[]> DownloadChunkAsync(string path, int chunkId, long chunkSize)
{
throw new NotImplementedException();
}